| 1 | module fontstash |
| 2 | |
| 3 | @[flag] |
| 4 | pub enum Flags { |
| 5 | top_left |
| 6 | bottom_left |
| 7 | } |
| 8 | |
| 9 | @[flag] |
| 10 | pub enum Align { |
| 11 | // Horizontal align |
| 12 | left // Default |
| 13 | center |
| 14 | right |
| 15 | // Vertical align |
| 16 | top |
| 17 | middle |
| 18 | bottom |
| 19 | baseline // Default |
| 20 | } |
| 21 | |
| 22 | pub enum ErrorCode { |
| 23 | // Font atlas is full. |
| 24 | atlas_full = 1 |
| 25 | // Scratch memory used to render glyphs is full, requested size reported in 'val', you may need to bump up FONS_SCRATCH_BUF_SIZE. |
| 26 | scratch_full = 2 |
| 27 | // Calls to fonsPushState has created too large stack, if you need deep state stack bump up FONS_MAX_STATES. |
| 28 | states_overflow = 3 |
| 29 | // Trying to pop too many states fonsPopState(). |
| 30 | states_underflow = 4 |
| 31 | } |
| 32 |