|
gpforge
An advanced bitmap font editor
|
The BMP part of unicode block table and the blocks of a font. More...
Go to the source code of this file.
Data Structures | |
| struct | gpf_ucode_block |
| A unicode block description. More... | |
Functions | |
| const char * | gpf_ucode_block_sample (const char *name) |
| Looks up the preview sample text for a unicode block. | |
| struct gpf_ucode_block * | gpf_blocks_build (struct gpf_font *font) |
| Builds a list of blocks for a font. | |
| int | gpf_blocks_find (const struct gpf_ucode_block *blocks, uint32_t code) |
| Looks up a block by a codepoint. | |
| static uint32_t | gpf_block_glyphs (const struct gpf_ucode_block *block) |
| Counts number of codepoints in a unicode block. | |
Variables | |
| const struct gpf_ucode_block | gpf_ucode_blocks [] |
| A NULL name terminated array of unicode blocks. | |
The BMP part of unicode block table and the blocks of a font.
The global table lists every unicode block, a font's block list is made of copies of its entries with the coverage filled in.
Definition in file unicode_blocks.h.
|
inlinestatic |
Counts number of codepoints in a unicode block.
| block | A unicode block. |
Definition at line 78 of file unicode_blocks.h.
| struct gpf_ucode_block * gpf_blocks_build | ( | struct gpf_font * | font | ) |
Builds a list of blocks for a font.
The blocks the font has glyphs in, the ones declared in the font family and Basic Latin when that leaves the list empty.
| font | A font. |
Definition at line 277 of file unicode_blocks.c.
References gpf_ucode_block::max, and gpf_ucode_block::min.
Referenced by gpf_gui_blocks().
| int gpf_blocks_find | ( | const struct gpf_ucode_block * | blocks, |
| uint32_t | code ) |
Looks up a block by a codepoint.
| blocks | A gp_vec of unicode blocks. |
| code | A codepoint to lookup a block for. |
Definition at line 326 of file unicode_blocks.c.
References gpf_ucode_block::max, and gpf_ucode_block::min.
| const char * gpf_ucode_block_sample | ( | const char * | name | ) |
Looks up the preview sample text for a unicode block.
| name | A unicode block name, as in gpf_ucode_blocks. |
Definition at line 265 of file unicode_blocks.c.