View Issue Details

IDProjectCategoryView StatusLast Update
0008247Dwarf FortressTrueTypepublic2014-09-07 08:37
Reporterlsmoura Assigned Touser6 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformMacOSOS XOS Version10.10
Product Version0.40.11 
Summary0008247: TrueType on OSX only works for 2D print modes
DescriptionI was wondering how to make TTF fonts work on OSX. I've just realised that TTF_Init() is never called. I wonder why the behaviour is different from windows.

I've tried this with several truetype settings:

[TRUETYPE:NO]
[TRUETYPE:YES]
[TRUETYPE:24]
[TRUETYPE:12]
[TRUETYPE:36]

Also, pressing <F12> (or Fn+F12 or CMD+Fn+F12) does nothing.
Steps To ReproduceOpen the game, press F12
Additional InformationI've hooked up into SDL code to see if the function is called. I saw that TTF_Init is not called. Ever.
I've tried to initialise it myself. It does initialise, but the game still does not display truetype fonts.

I can load truetype fonts (from inside dwarfort.exe), after initializing the library, but my calls render a "white" window. I haven't investigated much, but as far as I can tell, Dwarf Fortress is not trying to load the font or draw it on the screen.

My attempts to draw to an SDL_Surface and display it on the screen have been rendered useless (white window). Maybe because of the presence of the shaders, but I couldn't investigate to that point.

I can provide the code to "hook up" on the executable if needed.
TagsNo tags attached.

Activities

Quietust

2014-09-05 14:28

reporter   ~0029975

What RENDERER mode are you using?

Because if it is not 2D, 2DSW, or 2DASYNC, then TrueType mode will not work.

lsmoura

2014-09-06 11:21

reporter   ~0029992

I was using VBO. 2D mode fixed the problem (and I can't seem to find where to cancel this bug report).

Dame de la Licorne

2014-09-06 11:32

reporter   ~0029993

One of the moderators will close it.

Issue History

Date Modified Username Field Change
2014-09-05 13:58 lsmoura New Issue
2014-09-05 14:28 Quietust Note Added: 0029975
2014-09-06 11:21 lsmoura Note Added: 0029992
2014-09-06 11:32 Dame de la Licorne Note Added: 0029993
2014-09-07 08:37 user6 Summary TrueType fonts not working on OSX. TTF_Init() is never called. => TrueType on OSX only works for 2D print modes
2014-09-07 08:37 user6 Status new => resolved
2014-09-07 08:37 user6 Resolution open => no change required
2014-09-07 08:37 user6 Assigned To => user6