> On 10 Dec 2014, at 9:03 , Nicolai Hess <[email protected]> wrote:
>
> Someone knows, why the text on the completion morph is so ugly?
> For example, this text
>
> Morph ne
>
> will open a completion window for "Morph class". This name
> is a vertical label on the left.
>
> The text looks ugly when we are using a FT font.
>
> Can we do anything to make this look better ?
>
> I know that (smooth) text rendering is difficult for arbitrary rotated forms,
> but
> this rotation around n*90 degree works with StrikeFont.
>
>
> nicolai
>
I suspect one needs to blend with a transparent white temp canvas, not black,
for the TT glyphs to render correctly.
In
transformBy: aDisplayTransform clippingTo: aClipRect during: aBlock
smoothing: cellSize
*snip*
start to: 2 do:
[:i | "If i=1 we first make a shadow and erase it for opaque
whites in B&W"
subCanvas := self class extent: patchRect extent depth: self
depth.
i=1 ifTrue: [ warp combinationRule: Form erase ]
ifFalse: [ warp combinationRule: rule].
rule = Form blend ifTrue: ["If we want a subcanvas to actually
blend nicely, it better be translucent white than translucent black..."
].
Unfortunately, the merging of Color and AlphaColor seems to have broken pretty
much every path I could think of to transform translucent black pixels into
translucent white pixels (or, maybe doing something like that easily has never
worked), and I CBA to fix every method in Color dealing with alpha -> pixel
conversion, so this remains a theory.
Cheers,
Henry