-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font name revert to default after image restart and won't use name provided. #672
Comments
Yes, this is not only for Noto Color Emoji. Example with other font: Load the testing fonts with this script: "
AeFontManager resetGlobalInstance.
AeFontManager globalInstance scanDirectory: AeFilesystemResources fontsDirectory
" Then inspect this: | text |
text := 'office' asRopedText
fontSize: 40;
fontName: 'Inria Serif';
yourself.
BlTextElement text: text. Then Save&Close, and reopen the image. The inspected form will look as with default font (Source Sans Pro), instead of Intia Serif, until you re-scan the tests fontDirectory. |
@rvillemeur my idea to fix this issue is changing the font manager to automatically reload fonts on image startup. The user would have System Settings to be able to:
I commented details of this idea in Alexandrie's issue 31. |
Add @Ducasse, If I remember well, font handling was a challenge in previous version of Pharo (and still is in some scenario). He may have some concern to share, given Bloc/Alexandrie is the future graphical stack. |
Using this script to display Emoji from 'Noto Color Emoji'. The first time, you get a grid of Emoji (hopefully in color).
Save and close the image. Reopen it and re-execute the script, you'll get
It look like it will default to Source Sans Pro (the default one in Bloc)
Behavior reproduced using Pharo 12, Windows 11 or Linux Fedora 41
Reseting and scanning for system font doesn't change the behavior
The text was updated successfully, but these errors were encountered: