Page 1 of 1

[SOLVED] How to use fonts located in a specific folder

Posted: Tue Jan 16, 2024 12:08 pm
by boddhi
Hi,

As said the title, under Windows, there is a way to use fonts located in specific folders.
I want to do a catalog for my fonts located in a external drive.
I've tested LoadFont(x,"Path:\FontName.ttf"), no result...

I did some research and found this post. But even if I enter a path and a font name, I get no results too.
Maybe it's just not possible?

Re: How to use fonts located in a specific folder

Posted: Tue Jan 16, 2024 12:12 pm
by jacdelad
LoadFont is for using fonts registered by Windows. Try RegisterFontFile.

Re: How to use fonts located in a specific folder

Posted: Tue Jan 16, 2024 1:38 pm
by boddhi
jacdelad wrote: Tue Jan 16, 2024 12:12 pm LoadFont is for using fonts registered by Windows. Try RegisterFontFile.
Thanks for your reply.

I tried that too but didn't work.
But I realized that I had made a error in the code. I used DrawingFont(FontNbr) instead of DrawingFont(FontId(FontNbr)). :oops: :oops: :oops:
Sorry :oops: :wink:

Re: [SOLVED] How to use fonts located in a specific folder

Posted: Wed Jan 17, 2024 5:38 am
by jacdelad
I do this mistake regularly. :lol: Also I often miss the ImageID() when using images somewhere.

Re: [SOLVED] How to use fonts located in a specific folder

Posted: Wed Jan 17, 2024 12:20 pm
by Mindphazer
jacdelad wrote: Wed Jan 17, 2024 5:38 am I do this mistake regularly. :lol: Also I oftne miss the ImageID() when using images somewhere.
Glad to know i'm not the only one. I feel less lonely now :mrgreen:

Re: [SOLVED] How to use fonts located in a specific folder

Posted: Fri Jan 19, 2024 2:07 am
by boddhi
jacdelad wrote: I do this mistake regularly. :lol:
Mindphazer wrote: Glad to know i'm not the only one. I feel less lonely now :mrgreen:
I'm so relieved to see that more experienced programmers than me are still doing this kind of crap. :mrgreen: :wink:

Re: [SOLVED] How to use fonts located in a specific folder

Posted: Fri Jan 19, 2024 8:25 am
by Mindphazer
I'm so relieved to see that more experienced programmers than me are still doing this kind of crap. :mrgreen: :wink:
I would never claim to be more experienced than others :P

Re: [SOLVED] How to use fonts located in a specific folder

Posted: Fri Jan 19, 2024 8:37 am
by jacdelad
boddhi wrote: Fri Jan 19, 2024 2:07 am I'm so relieved to see that more experienced programmers than me are still doing this kind of crap. :mrgreen: :wink:
Can't say a word about Mindphazer, but I'm totally not more experienced. :D