Failed to load font ?

90 views
Skip to first unread message

mar...@feldtmann.online

unread,
Sep 20, 2022, 6:35:38 AM9/20/22
to VAST Community Forum
I used my tools under Windows 10 and Wine under Linux and I never had such dialogs. But under a different client (Windows) I got this error. Now the question is - what font is missing here ? (VastPlatform 2022, 64 Bit). Normally I only use the System font. I tought I would be pretty safe, because under Wine no dialog came up.

Marten

Louis LaBrunda

unread,
Sep 20, 2022, 7:18:35 AM9/20/22
to VAST Community Forum
Hi Marten,

Can we get a snapshot of the dialog.

Lou

mar...@feldtmann.online

unread,
Sep 20, 2022, 8:52:30 AM9/20/22
to VAST Community Forum
unkown-font.png

Richard Sargent

unread,
Sep 20, 2022, 12:40:13 PM9/20/22
to VAST Community Forum
In 10.0.2, there are only three places where that message is displayed. When it happens next, you can hit the the Click Here to Interrupt Execution button, then click OK on the dialogue. You should get a debugger up that will allow you to investigate what font it was trying to load.

mar...@feldtmann.online

unread,
Oct 27, 2022, 6:29:52 AM10/27/22
to VAST Community Forum
So, I found the place where it happens - when GfST is loading its default font ... -microsoft-system-bold-r-normal-sansserif-16-100-120-120-p-90-iso8859-1

GFTextGO>>defaultFont

I still do not know why and under which circumstances it happens

mar...@feldtmann.online

unread,
Oct 27, 2022, 6:55:44 AM10/27/22
to VAST Community Forum
And now I found the reason - a left-alone instance of that class in the image from where I produced the application .... I created new images everywhere and now all stuff is clean.

mar...@feldtmann.online

unread,
Oct 27, 2022, 7:37:32 AM10/27/22
to VAST Community Forum
and a rollback again ...the failure is during startup ... PsiObjectDrawingInterface class>imageStartup ...

and this statement delivers nil (with direct values in the statement): 

CgDisplay default defaultFont loadQueryFont: '-microsoft-system-bold-r-normal-sans serif-16-100-120-120-p-90-iso8859-1'

mar...@feldtmann.online schrieb am Donnerstag, 27. Oktober 2022 um 12:29:52 UTC+2:

mar...@feldtmann.online

unread,
Nov 15, 2025, 8:40:25 AMNov 15
to VAST Community Forum
To update this problem ... as it still happens:

VisualInspectingES>>imageStartup
"Private - reinitialize the font"

| defaultFontName fontStruct |
defaultFontName := PsiAbstractObjectGO displayFont.
defaultFontName == nil ifFalse: [ defaultFontName := defaultFontName name ].

defaultFontName notNil
ifTrue: [
(fontStruct := CgDisplay default loadQueryFont: defaultFontName) isNil
ifTrue: [CwMessagePrompter errorMessage: 'Failed to load font']
ifFalse: [PsiAbstractObjectGO displayFont: fontStruct]].

This is the method, which can create an error message - even in an development image - when starting an image. It may work or not depending on your screen settings and your default magnification (100%, 125%, 150%, etc).

Marten

Richard Sargent

unread,
Nov 17, 2025, 12:40:17 PM (13 days ago) Nov 17
to VAST Community Forum
In an earlier message, you said the font was  -microsoft-system-bold-r-normal-sansserif-16-100-120-120-p-90-iso8859-1.
That is an extremely specific font specification. If you can find where that comes from, if it is originally specified as that, you could try changing it to be more generic. Actually, as I write this, the first element of the name just twigged for me. I doubt linux systems have Microsoft fonts installed.

I thin "best practice" for font names is to specify the least that will provide the result you want.
e.g. perhaps -*-*-bold-r-*-sansserif-16-*-*-*-p-90-*-* would give you an acceptable result on both platforms.

mar...@feldtmann.online

unread,
Nov 17, 2025, 1:56:58 PM (13 days ago) Nov 17
to VAST Community Forum
Well, the origin is the GFST package and this message can be produced when loading GFST even under Windows. The font is microsoft-system-bold, but the number varies - it seems to consider the current magnification of the display. So e.g. it seems to work under 100%, but not under 175% oder 150% or 125%.

Richard Sargent

unread,
Nov 17, 2025, 2:21:16 PM (13 days ago) Nov 17
to VAST Community Forum
I tracked it down to CgDisplay default defaultFontStruct.
So, it is definitely a VAST problem, not GFST per se.
Reply all
Reply to author
Forward
0 new messages