01-12-2025, 07:45 PM
I struggle with using fonts in QB64
Not easy!
This is my file explorer in win 10
![[Image: image.jpg]](https://i.ibb.co/2PpbVdr/image.jpg)
this is the properties of the font
![[Image: 1.jpg]](https://i.ibb.co/BKjw0vY/1.jpg)
This line gives the error invalid handle
mfont = _LoadFont(Environ$("HOME") + "/.local/share/fonts/CousineNerdFontMono-Bold.ttf", ps, "UNICODE")
So does this line
mfont = _LoadFont(Environ$("HOME") + "/windows/fonts/CousineNerdFontMono-Bold.ttf", ps, "UNICODE")
/windows/fonts/
is right where the ttf file is!
Is it installed? I think so, I did install it. You right click and PREVIEW and on that screen press INSTALL. I did it, it is GREY
![[Image: install.jpg]](https://i.ibb.co/hW9c3xN/install.jpg)
Go there with the DOS command and do DIR, not there!
![[Image: 3.jpg]](https://i.ibb.co/LP4LZP0/3.jpg)
I don't know what I am doing wrong
Not easy!
This is my file explorer in win 10
![[Image: image.jpg]](https://i.ibb.co/2PpbVdr/image.jpg)
this is the properties of the font
![[Image: 1.jpg]](https://i.ibb.co/BKjw0vY/1.jpg)
This line gives the error invalid handle
mfont = _LoadFont(Environ$("HOME") + "/.local/share/fonts/CousineNerdFontMono-Bold.ttf", ps, "UNICODE")
So does this line
mfont = _LoadFont(Environ$("HOME") + "/windows/fonts/CousineNerdFontMono-Bold.ttf", ps, "UNICODE")
/windows/fonts/
is right where the ttf file is!
Is it installed? I think so, I did install it. You right click and PREVIEW and on that screen press INSTALL. I did it, it is GREY
![[Image: install.jpg]](https://i.ibb.co/hW9c3xN/install.jpg)
Go there with the DOS command and do DIR, not there!
![[Image: 3.jpg]](https://i.ibb.co/LP4LZP0/3.jpg)
I don't know what I am doing wrong
______________________________
I'm with you fellers
I'm with you fellers

