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?
[SOLVED] How to use fonts located in a specific folder
[SOLVED] How to use fonts located in a specific folder
Last edited by boddhi on Tue Jan 16, 2024 1:43 pm, edited 1 time in total.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: How to use fonts located in a specific folder
LoadFont is for using fonts registered by Windows. Try RegisterFontFile.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: How to use fonts located in a specific folder
Thanks for your reply.jacdelad wrote: Tue Jan 16, 2024 12:12 pm LoadFont is for using fonts registered by Windows. Try RegisterFontFile.
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)).
Sorry
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: [SOLVED] How to use fonts located in a specific folder
I do this mistake regularly.
Also I often miss the ImageID() when using images somewhere.
Last edited by jacdelad on Fri Jan 19, 2024 8:36 am, edited 1 time in total.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
- Mindphazer
- Enthusiast

- Posts: 487
- Joined: Mon Sep 10, 2012 10:41 am
- Location: Savoie
Re: [SOLVED] How to use fonts located in a specific folder
Glad to know i'm not the only one. I feel less lonely nowjacdelad wrote: Wed Jan 17, 2024 5:38 am I do this mistake regularly.Also I oftne miss the ImageID() when using images somewhere.
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
...and unfortunately... Windows at work...
Re: [SOLVED] How to use fonts located in a specific folder
jacdelad wrote: I do this mistake regularly.![]()
I'm so relieved to see that more experienced programmers than me are still doing this kind of crap.Mindphazer wrote: Glad to know i'm not the only one. I feel less lonely now![]()
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
- Mindphazer
- Enthusiast

- Posts: 487
- Joined: Mon Sep 10, 2012 10:41 am
- Location: Savoie
Re: [SOLVED] How to use fonts located in a specific folder
I would never claim to be more experienced than othersI'm so relieved to see that more experienced programmers than me are still doing this kind of crap.![]()
![]()
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
...and unfortunately... Windows at work...
Re: [SOLVED] How to use fonts located in a specific folder
Can't say a word about Mindphazer, but I'm totally not more experienced.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.![]()
![]()
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
