gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Text font headers

#148297 - ShadowX - Fri Jan 04, 2008 2:36 pm

Where can I find text font headers?

I prefer fonts containing 8-bit ASCII characters.

#148306 - Kyoufu Kawa - Fri Jan 04, 2008 3:07 pm

You don't want headers then. You want data.

#148316 - silent_code - Fri Jan 04, 2008 4:06 pm

please, be a *bit* more specific about what you need and what you need it for. let's say, there are plenty of posts which are too generic and people tend to write stuff they don't mean (no personal offense, though).

most of us were glad to help a fellow scientist... wait a moment: too much HL lately! ;^P

#148392 - tepples - Sat Jan 05, 2008 6:53 am

ASCII is a 7-bit encoding. Which code page did you envision using for the other half of the code space? (I'm guessing either 437 or 1252.)

Did you want 1-bit fixed-width fonts, 1-bit proportional fonts, antialiased fixed-width fonts, or antialiased proportional fonts?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#148400 - ShadowX - Sat Jan 05, 2008 11:54 am

tepples wrote:
ASCII is a 7-bit encoding.


Don't you know that also exists the extended ASCII?
It has the accented characters (?, ?, ? ? ?, ?, ?, ?, ?, ?. ?, etc.) and some more.

#148408 - tepples - Sat Jan 05, 2008 2:18 pm

ShadowX wrote:
tepples wrote:
ASCII is a 7-bit encoding.

Don't you know that also exists the extended ASCII?

"Extended ASCII" refers to those code pages that extend ASCII. These code pages include 437 (DOS), 1252 (Windows), 10000 (Mac OS Classic), and 65001 (UTF-8). But from the Wikipedia article "Extended ASCII":
English Wikipedia contributors wrote:
The use of the term is sometimes criticized, because it can be mistakenly interpreted that the ASCII standard has been updated to include more than 128 characters or that the term unambiguously identifies a single encoding, both of which are untrue.

Just wanted to get that out of the way. The point here is that if I make a font for 437 and the requester wants 1252, I'll have to reorder the glyphs to match the other encoding, and I'll have to draw new glyphs for those characters in 1252 but not in 437.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#148409 - kusma - Sat Jan 05, 2008 2:19 pm

ShadowX wrote:
Don't you know that also exists the extended ASCII?
It has the accented characters (?, ?, ? ? ?, ?, ?, ?, ?, ?. ?, etc.) and some more.

According to both wikipedia and asciitable.com, extended ASCII was never standardized, and several variations exist. You could of course go with the most popular one / the one that suits yourself the best.

edit: tepples beat me to it ;)