Grid Sage Forums

Grid Sage Forums

  • November 21, 2024, 09:36:21 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

LINKS: Website | Steam | Wiki

Pages: 1 [2]

Author Topic: a Font Atlas Generator  (Read 10947 times)

Lucide

  • Derelict
  • **
  • Posts: 22
    • View Profile
Re: a Font Atlas Generator
« Reply #25 on: January 11, 2021, 11:04:24 AM »

Hey @Kyzrati, I'd like to ask you a detail about the charset file specs: the manual states:
Quote
Indices start from 0 and proceed in row-major order, as displayed in the font bitmap, and any index not specified in the file will produce a "?" where an imagine using that glyph is exported.
The indices guaranteed to be in crescent order, right? All they can do is skip some indices?
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: a Font Atlas Generator
« Reply #26 on: January 13, 2021, 11:02:30 PM »

The indices guaranteed to be in crescent order, right? All they can do is skip some indices?
I'm not sure what you mean by "crescent order" (I'm guessing this is a typo for ascending order? or is it something else?).

In any case, the order does not matter at all. The sample default file just proceeds in ascending order (and skips unrelated characters) purely for convenience, but it is simply a list of matching pairs that can be provided in any order you want, one pair per line.

The "indices start from 0" part is referring to the source bitmap's layout and how to reference each glyph.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon

Lucide

  • Derelict
  • **
  • Posts: 22
    • View Profile
Re: a Font Atlas Generator
« Reply #27 on: January 14, 2021, 04:17:25 AM »

Ahahah, my bad, it looks like a brain fart between ascending and increasing.
Thank you for the info
Logged
Pages: 1 [2]