Sure. Here's an example fontdata$ that doesn't work. I will attach the font file I'm grabbing the fontdata$ from.
I will eventually load fontdata$ directly from .BAS code instead of an external file like below, but doing this way right now just to test different fonts. My font data doesn't load from string "memory" this way for some reason.
EDIT: I can't seem to attach the font file - forum won't let me. Can you subsitute with a font on your end to see if the loading a font this way works for you? Here's a link to the same font file.
- Dav
I will eventually load fontdata$ directly from .BAS code instead of an external file like below, but doing this way right now just to test different fonts. My font data doesn't load from string "memory" this way for some reason.
EDIT: I can't seem to attach the font file - forum won't let me. Can you subsitute with a font on your end to see if the loading a font this way works for you? Here's a link to the same font file.
- Dav
Code: (Select All)
'load from file into fontdata$
Open "monofonto.otf" For Binary As 1
fontdata$ = Input$(LOF(1), 1)
close
'load from fontdata$ string memory
myfont& = _LoadFont(fontdata$, 32, "memory")
_Font myfont&