FreeType reported Error 0x1 (arial font)

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Jakeke
Engineer
Engineer
Posts: 3
Joined: 16 Apr 2009 17:31

FreeType reported Error 0x1 (arial font)

Post by Jakeke »

Image
Pressing ok or cancel just gives this error message again. What should I do?


I have vista 64bit os and I tried to reinstall without any results.

p.s: I tried to find similar error report from this forum but didn't succeed...
Last edited by Jakeke on 17 Apr 2009 10:20, edited 1 time in total.
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: Error

Post by Benny »

Which version of OpenTTD are you using? (0.7.0, Nightly, cargodest etc.)
Did you download the 64bit version?
Image
Jakeke
Engineer
Engineer
Posts: 3
Joined: 16 Apr 2009 17:31

Re: Error

Post by Jakeke »

0.7.0, I tried both versions and I don't have any extra grafs etc. just the basic ttd.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Error

Post by FooBar »

Start OpenTTD from command line, using the -d freetype=1 parameter. Hopefully that gives a more sensible indication about what's wrong.
Jakeke
Engineer
Engineer
Posts: 3
Joined: 16 Apr 2009 17:31

Re: Error

Post by Jakeke »

It will give same error message multiple times but I can now play the game with this command. Thanks.
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: Error

Post by Conditional Zenith »

Could you please make the topic title more useful. It will help other people with similar problems.
User avatar
glx
OpenTTD Developer
OpenTTD Developer
Posts: 622
Joined: 02 Dec 2005 15:43
Location: Drancy(93) - France
Contact:

Re: FreeType reported Error 0x1 (arial font)

Post by glx »

If you click OK everytime you can play (similar to -dfreetype1 ;) )

Did you specify "arial" for *_font in openttd.cfg ? What happens if you specify a font you are sure you have on your system in openttd.cfg ?
Piccolo
Engineer
Engineer
Posts: 14
Joined: 19 Apr 2009 09:16
Location: Toulouse, France
Contact:

Re: FreeType reported Error 0x1 (arial font)

Post by Piccolo »

Hello there,

I have the same problem.

Windows XP SP2 32-bit
OpenTTD 0.7.0

To change the fonts of Openttd that are too small on my computer, I tried this topic :
http://www.tt-forums.net/viewtopic.php? ... hilit=font

So, I edited the "openttd.cfg" file located in my "$mydocuments$\OpenTTD\" directory like this :

small_font =
medium_font = tahomabold
large_font = tahomabold
small_size = 8
medium_size = 11
large_size = 16

(I downloaded that font from the link given in that topic and put it in the "c:\windows\fonts" directory)

When I stard OpenTTD with this parameter, I have these messages :
Unable to use 'tahomabold' for medium font, FreeType reported error 0x1, using sprite font instead".
Unable to use 'tahomabold' for large font, FreeType reported error 0x1, using sprite font instead".
When I click on OK or Cancel, the game starts normally.

I have these messages with many font specified in the *_font line, even if this font (TTF) exists in the "C:\WINDOWS\Fonts directory" : arialbd, times, bookos, etc.
I have no messages when no font is specified or when I put "arial" in the *_font line.

* Are there compatible and non compatible fonts for OpenTTD ?
* Is there a better way to restore the font aspects of OpenTTD 0.6.1 in OpenTTD 0.7.0 ?
Attachments
ottd.jpg
ottd.jpg (82.68 KiB) Viewed 500 times
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: FreeType reported Error 0x1 (arial font)

Post by FooBar »

What happens if you try Tahoma Bold, as that's the name used in the Windows registry and I bet FreeType gets the font names from there as well. At least I get it working if I specify that.


For the ones interested: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
Piccolo
Engineer
Engineer
Posts: 14
Joined: 19 Apr 2009 09:16
Location: Toulouse, France
Contact:

Re: FreeType reported Error 0x1 (arial font)

Post by Piccolo »

What happens if you try Tahoma Bold, as that's the name used in the Windows registry and I bet FreeType gets the font names from there as well. At least I get it working if I specify that.
For the ones interested: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
OK, it works perfectly with that syntax (based on the registery key, not the file name of the font).
Thanks a lot.

(so I guess my problem is slignhtly different from Jakeke's... sorry for the digression)
lazy_train323
Engineer
Engineer
Posts: 4
Joined: 13 Sep 2009 00:29

Re: FreeType reported Error 0x1 (arial font)

Post by lazy_train323 »

Hi! :D It s my first post, and sorry for bringing old post.

I have this issue to set to, just tested font name from windows/font directory, from here just use Tahome Bold in .cfg file work well. No need to set registry key.
Thanks its help me a lot. :bow:
parcel
Engineer
Engineer
Posts: 19
Joined: 18 Feb 2010 09:55

Re: FreeType reported Error 0x1 (arial font)

Post by parcel »

I have same problem.

It caused by non-English font name is set default internally.

Manully set font names in configuration file, no errors are raised.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 36 guests