12#ifndef GPFORGE_UNICODE_BLOCKS_H
13#define GPFORGE_UNICODE_BLOCKS_H
80 return block->max - block->min + 1;
The in-memory font model.
A unicode block description.
const char * name
Human readable name of the block.
unsigned int coverage
Number of glyphs the font has in this block.
uint32_t max
Last code point in the block.
uint32_t min
First code point in the block.
int gpf_blocks_find(const struct gpf_ucode_block *blocks, uint32_t code)
Looks up a block by a codepoint.
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.
static uint32_t gpf_block_glyphs(const struct gpf_ucode_block *block)
Counts number of codepoints in a unicode block.