pharo-graphics / Alexandrie

FFI bindings and a 2D canvas for Pharo based on Cairo, Freetype and Harfbuzz
MIT License
5 stars 2 forks source link

Change #setHighQualityOptions on AeCanvas to not use font metric hinting #51

Closed Rinzwind closed 8 months ago

Rinzwind commented 8 months ago

This pull request changes #setHighQualityOptions on AeCanvas to not use font metric hinting. For details see Bloc issue #450.

tinchodias commented 8 months ago

@plantec @labordep For your information: I've merged this change (discussed in https://github.com/pharo-graphics/Bloc/issues/450) that produces a slight change in the calculation of text extent (i.e. each word in a Album editor). I don't think this can be a problem for you, but I want to inform you for the case you find a difference in your projects.

After some tests, I achieved to capture a difference in Morphic host:

Screenshot 2024-03-07 at 23 15 06

(master = before merging this PR, dev = after)

But in several tests I didn't find any difference. For example this SDL2 host:

Screenshot 2024-03-07 at 22 55 36

it was the same before and after this PR.