Author Topic: How to change ingame font?  (Read 1741 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
How to change ingame font?
« on: August 07, 2018, 09:43:52 pm »
With the current font(Which is not FeralHeart's normal font), I can't tell the difference between a dot and a comma, so I'm trying to set the font back to FH's normal font, but I don't know how to change fonts.

The Templates.overlay, as well as the Templates2.overlay, are the same as the Templates files of the normal install of FeralHeart. Fonts listed as BlueHighway, Tahoma, and some TempusSans. The only difference between the normal and modded install is that there are extra font files in the modded install's Overlay1 folder that the game can't run without.

The FH HD(Can't remember the name of it) mod added the font.

How do I change the font?

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: How to change ingame font?
« Reply #1 on: August 07, 2018, 10:14:39 pm »
Those are all the normal FeralHeart fonts.
Have you tried to adjust the sizing? It may be a bit smaller than normal.

I'd assume you know how to do it, but I will tell ya just in case!
Templates.overlay and templates2.overlay, open those and scroll down. Adjust the character height for each font family~

I hope this works, I've never done it. Just seems plausible.

Right now, I am looking in to changing the font! Out of curiosity.
« Last Edit: August 07, 2018, 10:17:39 pm by Wolvie »
stinky dog coming through, don't mind me!

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: How to change ingame font?
« Reply #2 on: August 07, 2018, 10:21:21 pm »
LOL i changed the font to "xacto blade" and it crashed straight away...
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: How to change ingame font?
« Reply #3 on: August 07, 2018, 10:28:46 pm »
I did it! I changed the font completely!
https://imgur.com/a/HlTxG8i

(sorry for doubleposting, I felt this would get more attention on a second post!)
stinky dog coming through, don't mind me!

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: How to change ingame font?
« Reply #4 on: August 07, 2018, 10:38:35 pm »
The chat font size is set to minimum in the settings(In both installs of FH) so I can see the most lines in the chat window, I can easily tell the difference between letters and symbols in the other install of FH(The one with the default font face), it's the font that's the problem.
« Last Edit: August 07, 2018, 10:43:06 pm by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: How to change ingame font?
« Reply #5 on: August 07, 2018, 10:44:01 pm »
Would you rather me PM you about how to change the font, since it would take a big wall of text here?
stinky dog coming through, don't mind me!

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: How to change ingame font?
« Reply #6 on: August 07, 2018, 10:49:11 pm »
Would you rather me PM you about how to change the font, since it would take a big wall of text here?
A wall of text here is alright I think, but you can PM it to me.

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: How to change ingame font?
« Reply #7 on: August 07, 2018, 10:55:00 pm »
i would like a wall of text please.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: How to change ingame font?
« Reply #8 on: August 07, 2018, 11:12:52 pm »
I suppose the bags under my eyes couldn't get any worse, heh!

First things first, I suggest you make a backup file of your entire Overlays folder. This is a good precaution to take, since you can always start all over anew or change it back. I just made a folder on my desktop since it was easier, named it testing. You understand that part, lol, I'm sure. Once you made the folder, hop on over to the overlay1 files. Copy and paste the .overlays, as well as the gui.fontdef file.

Now, go to your C: drive. Open the Windows folder. Scroll/look for the Fonts folder. You will see a bunch of fonts (it may need to load a bit), find a font you are familiar with and copy and paste it into the testing folder. Open up the gui.fontdef in Notepad. Scroll down to the very bottom, underneath the } (bracket)
Copy and paste this code (or just type your own, using the other fonts as a guide):
Code: [Select]
YOURFONT NAME
{
type truetype
source YOURFONT.ttf
size 32
resolution 55
}
Very similar to a preset code, yeah?
Name the font whatever you want, I named mine TestFont. The only thing that needs changed besides the name if the source. The source name is the font file, TrueType font File, the ttf suffix. It seems to be case sensitive, so be aware of that. Example:
Quote
TestFont
{
   type      truetype
   source   bahnschrift.ttf
   size      32
   resolution   55
}

Open up the templates.overlay file. This is where you'll be able to change the fonts! To make it easier, just Ctrl and R to find and replace TestFont to the name of your text.
Code: [Select]
template container BorderPanel(GuiTemplate/BorderPanel)
{
    left 0
    top 0
    width 1
    height 1

    material GuiMat/PanelCenter
    border_size 0.02 0.02 0.02 0.02
    border_material GuiMat/PanelBorder
    border_topleft_uv 0 0 0.043 0.043
    border_top_uv 0.043 0 0.957 0.043
    border_topright_uv 0.957 0 1 0.043
    border_left_uv 0 0.043 0.043 0.957
    border_right_uv 0.957 0.043 1 0.957
    border_bottomleft_uv 0 0.957 0.043 1
    border_bottom_uv 0.043 0.957 0.957 1
    border_bottomright_uv 0.957 0.957 1 1
}
template element TextArea(GuiTemplate/BasicText)
{
    font_name TestFont
    char_height 0.03
colour_top 1 1 1
colour_bottom 1 1 1
    left 0.005
    top 0.005
}
template element TextArea(GuiTemplate/BasicText2)
{
    font_name TestFont
    char_height 0.03
colour_top 1 1 1
colour_bottom 1 1 1
    left -0.01
    top 0.005
    alignment right
    horz_align right
}
template element TextArea(GuiTemplate/LargeText)
{
    font_name TestFont
    char_height 0.05
colour_top 1 1 1
colour_bottom 1 1 1
    left 0.005
    top 0.005
}
template element TextArea(GuiTemplate/VeryLargeText)
{
    font_name TestFont
    char_height 0.075
colour_top 1 0.647059 0
colour_bottom 1 0.843137 0
    left 0
    top -0.036
    alignment center
    horz_align center
    vert_align center
}
template element TextArea(GuiTemplate/CenteredText)
{
    font_name TestFont
    char_height 0.03
colour_top 1 1 1
colour_bottom 1 1 1
    left 0
    top -0.0125
    alignment center
    horz_align center
    vert_align center
}
template element TextArea(GuiTemplate/TextFieldText)
{
    font_name TestFont
    metrics_mode pixels
    //char_height 0.03
    char_height 24
colour_top 1 1 1
colour_bottom 1 1 1
    //left 0.01
    //top 0.005
    left 6
    top 2
}
template element TextArea(GuiTemplate/SmallCenteredText)
{
    font_name TestFont
    char_height 0.025
colour_top 1 1 1
colour_bottom 1 1 1
    left 0
    top -0.01
    alignment center
    horz_align center
    vert_align center
}
template container Panel(GuiTemplate/Button)
{
    material GuiMat/ButtonUp
}
template container Panel(GuiTemplate/TextField)
{
    material GuiMat/TextField
}
template container Panel(GuiTemplate/TextArea)
{
    material GuiMat/TextArea
}
template container Panel(GuiTemplate/TextComponent)
{
}
template container Panel(GuiTemplate/Slider)
{
    width 0.02
    height 0.02
    material GuiMat/Slider
}
template container Panel(GuiTemplate/Sizer)
{
    material GuiMat/Sizer
}
template container Panel(GuiTemplate/SliderMarker)
{
    material GuiMat/SliderMarkerUp
}
template container Panel(GuiTemplate/Mover)
{
    height 0.04
    material GuiMat/Mover
}
template container Panel(GuiTemplate/ArrowLeftButton)
{
    left 0.05
    top 0
    width 0.05
    height 0.05
    material GuiMat/ButtonUp
}
template container Panel(GuiTemplate/ArrowRightButton)
{
    left 0.4
    top 0
    width 0.05
    height 0.05
    material GuiMat/ButtonUp
}
template element TextArea(GuiTemplate/ArrowLeftButtonText)
{
    font_name TestFont
    char_height 0.1
colour_top 1 1 1
colour_bottom 1 1 1
    left 0
    top -0.03
    width 0.12
    height 0.09
    alignment center
    horz_align center
    vert_align center
    caption <
}
template element TextArea(GuiTemplate/ArrowRightButtonText)
{
    font_name TestFont
    char_height 0.1
colour_top 1 1 1
colour_bottom 1 1 1
    left 0.005
    top -0.03
    width 0.12
    height 0.09
    alignment center
    horz_align center
    vert_align center
    caption >
}
template container Panel(GuiTemplate/CheckBox)
{
    left 0
    top 0
    width 0.025
    height 0.03
    material GuiMat/CheckBoxUpFalse
}
template container Panel(GuiTemplate/ScrollerMarker)
{
    material GuiMat/ButtonUp
}
template container Panel(GuiTemplate/Highlight)
{
    left 0
    top 0
    material GuiMat/Highlight
}
template container Panel(GuiTemplate/Tab)
{
    material GuiMat/TabDown
}
template element TextArea(GuiTemplate/ArrowLText)
{
font_name TestFont
char_height 0.06
colour 1 1 1
top -0.02
alignment center
horz_align center
vert_align center
caption <
}
template element TextArea(GuiTemplate/ArrowRText)
{
font_name TestFont
char_height 0.06
colour 1 1 1
top -0.02
alignment center
horz_align center
vert_align center
caption >
}
template container Panel(GuiTemplate/Partition)
{
left 0.01
height 0.01
material GuiMat/Partition
}
template container Panel(GuiTemplate/Map)
{
    material GuiMat/Slider
}
template container Panel(GuiTemplate/MapMarker)
{
    width 0.02
    height 0.02
    material GuiMat/ButtonUp
}

Now, open up the templates2.overlay. There is only one font change, so it isn't that much of a headache. Cut and paste those files into the overaly1 folder, it will replace all the files. Then you can test it in FeralHeart, make sure everything works and you can see everything!

Let me know if any problems arise, I just learned how to do it. I am unsure what does and doesn't work yet!
stinky dog coming through, don't mind me!

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: How to change ingame font?
« Reply #9 on: August 07, 2018, 11:39:36 pm »
It works! Thank you, Wolvie! I can now read ingame text way better. ;D

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.