Author Topic: Ravie.TTF font  (Read 3913 times)

0 Members and 1 Guest are viewing this topic.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Ravie.TTF font
« 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.  


Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Ravie.TTF font
« Reply #1 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
« Last Edit: June 03, 2018, 06:24:59 am by johnno56 »
Logic is the beginning of wisdom.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Ravie.TTF font
« Reply #2 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)
« Last Edit: June 03, 2018, 11:23:32 am by bplus »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Ravie.TTF font
« Reply #3 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.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Ravie.TTF font
« Reply #4 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
Logic is the beginning of wisdom.