OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: Alpha Centauri Bear on December 12, 2023, 01:20:01 am

Title: Fixed width font for numbers
Post by: Alpha Centauri Bear on December 12, 2023, 01:20:01 am
Any way to use fixed width font for numbers or somehow other way align numbers in list columns? They look skewed with proportional font.
Title: Re: Fixed width font for numbers
Post by: R1dO on December 12, 2023, 01:42:06 am
That is something (fixed width characters) one can already reach using mods.

It might require some maths and/or some fiddling.
See:
- https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)
For the definition of the font collection.
and:
- https://www.ufopaedia.org/index.php/Font_collection_(OpenXcom)
For the fine tuning, take special note of the `spacing` variable.
Title: Re: Fixed width font for numbers
Post by: Alpha Centauri Bear on December 12, 2023, 02:10:41 am
I am curious how font even becomes proportional if it is claimed to be, for example, 16x16 and characters are given as images. Are they cut based on whites surrounding them or by fixed rectangle?
Title: Re: Fixed width font for numbers
Post by: Alpha Centauri Bear on December 12, 2023, 02:47:08 am
I was right. Just making 1 wider solves this. Apparently, anyone can just edit font image to make it whatever they want.