I am trying to understand what is contained in a font file without getting into too much details.
I have created a simple diagram to illustrate my understanding so far, the diagram contains a "glyph table" that encompasses the glyphs available for the font, and each glyph has an index to identify it.
There is also other tables for the character sets supported by the font, there is a Unicode table that will map each Unicode code point to its corresponding glyph, and there is a number of other tables for the supported ANSI code pages.
Now when a program is reading a Unicode text, the program (or Windows that is) will acquire the glyph for each Unicode code point from the Unicode table and displays it. When the program is reading an ANSI text, the program will acquire the glyph for each character code from one of the ANSI tables (depending on the selected ANSI code page in Windows) and displays it.
This is the diagram:
Is my understanding accurate?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.