@FONT 1, "DejaVu Sans Oblique.font", 14
SetFontStyle(#NORMAL)
UseFont(1)
;SetFont("DejaVu Sans Oblique.font", 14)
SetFontStyle(#ANTIALIAS)
SetFontColor($0)
DebugPrint(TextWidth("This is a test."))
Repeat
WaitEvent
Forever
Using this code, I get drastically different results between the two executables (OS4 and Windows 7). The results are a bit closer if I remove the antialiasing, but they are still quite different. The same problem also shows up if the font is not linked to the executable.
@FONT 1, "DejaVu Sans Oblique.font", 14
SetFontStyle(#NORMAL)
UseFont(1)
;SetFont("DejaVu Sans Oblique.font", 14)
SetFontStyle(#ANTIALIAS)
SetFontColor($0)
DebugPrint(TextWidth("This is a test."))
Repeat
WaitEvent
Forever
Using this code, I get drastically different results between the two executables (OS4 and Windows 7). The results are a bit closer if I remove the antialiasing, but they are still quite different. The same problem also shows up if the font is not linked to the executable.
Hmmm, can you send me the TTF? Then I'll check this.
@FONT 1, "DejaVu Sans Oblique.font", 14
SetFontStyle(#NORMAL)
UseFont(1)
;SetFont("DejaVu Sans Oblique.font", 14)
SetFontStyle(#ANTIALIAS)
SetFontColor($0)
DebugPrint(TextWidth("This is a test."))
Repeat
WaitEvent
Forever
Using this code, I get drastically different results between the two executables (OS4 and Windows 7). The results are a bit closer if I remove the antialiasing, but they are still quite different. The same problem also shows up if the font is not linked to the executable.
Well, I'd say this is normal behaviour. Windows seems to interpret size 14 differently than OS4. Still, in both cases you will get a font that has a maximum char height of 14 pixels. If you use larger font sizes, the difference is not as striking as with the smaller sizes.
Ultimately, these problems could only be solved by using a custom font renderer inside Hollywood. Then the look would be exactly the same on every system but it would get slower because Hollywood would have to build font databases before being able to use TTFs. And also executable size of Hollywood would increase drastically, probably by 500kb or so.
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 30 Jan 2010 23:29:50 -0000
Well, I had the same problem here... I mailed Andreas already about it... If you use a Window Font and install it to your Amiga, then it will work perfectly on both machines, I guess (I just tried it with Times and Arial). I am just wondering if we can get a few "All purpose fonts" which render the same on Mac, Amiga and Win... ??