QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Petr on June 03, 2018, 05:22:07 am

Title: Ravie.TTF font
Post by: Petr on June 03, 2018, 05:22:07 am
Hi if use /windows/fonts/ravie.ttf, is the resulting text cut from above. Does it also in your case?

Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(1024, 768, 32)
  2. F& = _LOADFONT("C:\windows\fonts\ravie.ttf", 32, "MONOSPACE")
  3. PRINT "Look to me!" 'try what IDE do without SCREEN use and try move IDE window then...
  4.  

Title: Re: Ravie.TTF font
Post by: johnno56 on June 03, 2018, 06:20:13 am
Curious.

Originally, the "text" was slightly "clipped" at the top, so yes it happed to me as well. I then repositioned the text "locate 5,5"

I tried it my Linux machine, after downloading the font and including a file path, it printed just fine after relocating the text. Unusual part was the normal "Press any key to continue" was printed way off the left hand side of the screen and only displayed the last "e" of the word continue in the bottom left corner. Bit odd...

J
Title: Re: Ravie.TTF font
Post by: bplus on June 03, 2018, 10:05:22 am
Look to me like a bad font or bad font load, even without the "MONOSPACE"

Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(1024, 600, 32)
  2. F& = _LOADFONT("C:\windows\fonts\ravie.ttf", 32)
  3. FOR i = 0 TO 8
  4.     _PRINTSTRING (10, (i * (pH + 20)) + 10), STR$(pW) + "," + STR$(pH) + " Look to me!" 'try what

EDIT: Dang! I want to show pW, pH and certainly not pH, pH.

It looks like the font is suppose to be 4 x's higher than wide!!! (assuming that's supposed to be an 8, 32)
Title: Re: Ravie.TTF font
Post by: Petr on June 03, 2018, 03:11:55 pm
Thank you for your try. Your output is just as bad as my output. Damn, I'll have to try another font.
Title: Re: Ravie.TTF font
Post by: johnno56 on June 03, 2018, 08:23:41 pm
I have tested the program many times, using 'non windows' core fonts, as well as Windows and all fonts displayed as they should. No clipping. No truncating of words. Just normal. My preliminary conclusion would be that ravie.ttf may be a 'ttf' but may not be 'quite all there'... Just a guess.

J