[05 Jan 2010] Size of Linked Fonts

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 591
Joined: Sun Feb 21, 2010 1:28 am

[05 Jan 2010] Size of Linked Fonts

Post by PEB »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 05 Jan 2010 20:44:28 -0000

Hi Andreas,

I just noticed that the fonts linked to an executable do not render at the same size on OS4 comparted to Windows 7. Try the following code:

Code: Select all

@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.
User avatar
airsoftsoftwair
Posts: 5915
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[06 Jan 2010] Re: Size of Linked Fonts

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 06 Jan 2010 23:37:00 +0100
Hi Andreas,

I just noticed that the fonts linked to an executable do not render at the same size on OS4 comparted to Windows 7. Try the following code:

Code: Select all

@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.
User avatar
airsoftsoftwair
Posts: 5915
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[10 Jan 2010] Re: Size of Linked Fonts

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 10 Jan 2010 11:44:57 +0100
Hi Andreas,

I just noticed that the fonts linked to an executable do not render at the same size on OS4 comparted to Windows 7. Try the following code:

Code: Select all

@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.
gerograph
Posts: 79
Joined: Thu Mar 04, 2010 9:38 pm

[30 Jan 2010] Re: Size of Linked Fonts

Post by gerograph »

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... ??
Locked