2015-07-28 0:17 GMT+02:00 Peter Uhn��k <i.uhnak@gmail.com>:
Sorry it felt under radar...

yes, this does work!

however I managed to encounter two more bugs along the way

Pharo space: everything is underlined/bold as expected

Yes, I know this one. It is because there are different ways how textemphasis is handled.
In a text teditor for example, we use the full Text object. And in a list view it is only the
first character/text that defines the emphasis for the whole text line. I ported only the first one yet for athens.

��

Bloc space: no styling (this is same behavior both before and after loading Free Type)

������

And second thing (that may not be so obvious from the screenshot) is jaggedness of the font in Bloc (that's why I was messing with fonts in the first place).

Yes, small fonts look ugly with athens/cairo font rendering. This looks a little bit better if we enable/change the subpixel filter for FT and cairo (there is a bug
report at fogbugz, but I don't know if we will do this ever or if it is possible at all.
��

I suspected that Font Hinting (Settings > Appearance > Use Free Type ... > Advanced Features > Hinting) was incorrectly configured,
however when I tried to change it it had no effect.

This settings only control the options for the FreeTypePlugin used in Morphic. Athens/Cairo uses a different way for rending (cairo uses freetype too, but
the "normal" pharo freetypeplugin and cairo are using freetype differently ).
But you can control Cairos font options too (Look at class CairoFontOptions).
��

So my conclusion that fonts are not yet fully implemented or something else is missing? Or is my system/configuration wrong? (The image is Bloc build #609 from pharo-contribution).
I actually have the very same problem in text rendered in Roassal (Athens canvas), so I blame Athens. Is there a solution for this?

Yes, this is all about athens resp. athens cairo backend.
��

Thanks,
Peter

On Mon, Jul 27, 2015 at 8:20 PM, Nicolai Hess <nicolaihess@web.de> wrote:


2015-07-05 17:33 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:


2015-07-05 12:16 GMT+02:00 Peter Uhn��k <i.uhnak@gmail.com>:
Hi,

when reloading FreeType (Settings > Use free type:)

This is an Athens issues. Athens only "officially" supports vector fonts.
Drawing with bitmap fonts is a hack (and that happens during disable/enable freetype).

fixed in athens repository:

Name: Athens-Cairo-NicolaiHess.89
Author: NicolaiHess
Time: 5 July 2015, 5:31:21.319671 pm
UUID: f2a202d8-67fb-984c-a75a-21820d8fa9d4
Ancestors: Athens-Cairo-Nicolaihess.88
convert text string to utf8 converted buffer for
cairos cairo_show_text method

@peter
Did you try it, does it work for you ?
��