Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do you change true type font size?  (Read 1411 times)

tyrspawn

  • Bay Watcher
    • View Profile
How do you change true type font size?
« on: January 06, 2012, 09:58:09 pm »

Recently started running into CTD issues with Ironhand, its related to this:

http://www.bay12games.com/dwarves/mantisbt/view.php?id=3762

Someone in that ticket reccomended Gentium, i overwrote my font.ttf with that, and it looks fine and no more crashes. Just one major problem: the font is very small, and I barely read it.

How do you change the true type font size?
Logged
Chris Krause
Soundsense Mod Community Organizer
http://df.zweistein.cz/soundsense/

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: How do you change true type font size?
« Reply #1 on: January 07, 2012, 06:41:16 pm »

If you're running the Windows version, there's actually a way to fix the TrueType crash without using a different font (in fact, changing the font has nothing to do with it no longer crashing), but it involves some hex-editing:

2F063F : BE -> B6
2F07DD : BE -> B6

If you're running on Linux or MacOS, I can't help you.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

tyrspawn

  • Bay Watcher
    • View Profile
Re: How do you change true type font size?
« Reply #2 on: January 07, 2012, 06:48:27 pm »

If you're running the Windows version, there's actually a way to fix the TrueType crash without using a different font (in fact, changing the font has nothing to do with it no longer crashing), but it involves some hex-editing:

2F063F : BE -> B6
2F07DD : BE -> B6

If you're running on Linux or MacOS, I can't help you.

Where is that exactly?
Logged
Chris Krause
Soundsense Mod Community Organizer
http://df.zweistein.cz/soundsense/

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: How do you change true type font size?
« Reply #3 on: January 07, 2012, 06:57:04 pm »

Dwarf Fortress.exe, of course.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

tyrspawn

  • Bay Watcher
    • View Profile
Re: How do you change true type font size?
« Reply #4 on: January 07, 2012, 07:59:23 pm »

Dwarf Fortress.exe, of course.

Anyway you could be a pal and upload the modified version of the exe?
Logged
Chris Krause
Soundsense Mod Community Organizer
http://df.zweistein.cz/soundsense/

tyrspawn

  • Bay Watcher
    • View Profile
Re: How do you change true type font size?
« Reply #5 on: January 08, 2012, 12:35:27 am »

Did the hex edit, still crashing.
Logged
Chris Krause
Soundsense Mod Community Organizer
http://df.zweistein.cz/soundsense/

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: How do you change true type font size?
« Reply #6 on: March 06, 2012, 12:16:50 pm »

-bump, since the actual question is still unanswered -

Interests me as well, how to change font size ?
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

RanDomino

  • Bay Watcher
    • View Profile
Re: How do you change true type font size?
« Reply #7 on: April 26, 2012, 12:44:43 pm »

I've been digging around and haven't found any answer, so I guess larger TT font size must not be supported :(
Logged

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: How do you change true type font size?
« Reply #8 on: April 26, 2012, 12:56:37 pm »

Resize the window, scroll the middle mouse button.  Hello larger font.

There IS an upper limit, you must be able to fit at least 80 columns of text on the screen.  Otherwise, it will select the largest font that allows this.
Logged
I like fortresses because they are still underground.

RanDomino

  • Bay Watcher
    • View Profile
Re: How do you change true type font size?
« Reply #9 on: April 27, 2012, 12:58:46 pm »

There IS an upper limit, you must be able to fit at least 80 columns of text on the screen.  Otherwise, it will select the largest font that allows this.

Yeah, that's the problem.  Even at the largest size any font I use is waaay less readable than the non-ttf default (but then I get names with levers and hamlets).
Logged

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: How do you change true type font size?
« Reply #10 on: April 27, 2012, 03:57:41 pm »

< 80 columns aren't supported in the game, period.  It's deffinitely a hardcoded limit.

Have you tried using a font that's more readable at small sizes?
Logged
I like fortresses because they are still underground.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: How do you change true type font size?
« Reply #11 on: April 30, 2012, 01:14:23 pm »

I downloaded a font editing tool and changed the actual size of the glyphs in the ttf. file to solve this problem for my mod.

Font Lab 5.0 is the tool I used and it worked without any problem.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::