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

Duplicated fonts after scan #12

Closed tinchodias closed 2 years ago

tinchodias commented 2 years ago

Evaluate:

AeFontManager resetGlobalInstance.
AeFontManager globalInstance scanDirectory: AeFilesystemResources fontsDirectory.

Inspect: AeFontManager globalInstance and navigate:

Screen Shot 2022-10-14 at 16 52 10

The scan process registers duplicated the fonts as the directory contains the a TTF and an OTF file for each "Inria Serif" font:

https://user-images.githubusercontent.com/3044265/195930904-068b22ac-4963-4852-b316-ed762f2548b4.mov

tinchodias commented 2 years ago

Fixed by a8299a22d783d4ca61d053df1ccfb5d77267e63f