2020-01-16 22:45:47 +03:00
|
|
|
module fontstash
|
|
|
|
|
2022-04-11 22:23:06 +03:00
|
|
|
[flag]
|
|
|
|
pub enum Flags {
|
|
|
|
top_left
|
|
|
|
bottom_left
|
2020-01-16 22:45:47 +03:00
|
|
|
}
|
|
|
|
|
2022-04-11 22:23:06 +03:00
|
|
|
[flag]
|
|
|
|
pub enum Align {
|
2020-01-16 22:45:47 +03:00
|
|
|
// Horizontal align
|
2022-04-11 22:23:06 +03:00
|
|
|
left // Default
|
|
|
|
center
|
|
|
|
right
|
2020-01-16 22:45:47 +03:00
|
|
|
// Vertical align
|
2022-04-11 22:23:06 +03:00
|
|
|
top
|
|
|
|
middle
|
|
|
|
bottom
|
|
|
|
baseline // Default
|
2020-01-16 22:45:47 +03:00
|
|
|
}
|
|
|
|
|
2022-04-11 22:23:06 +03:00
|
|
|
pub enum ErrorCode {
|
2020-01-16 22:45:47 +03:00
|
|
|
// Font atlas is full.
|
|
|
|
atlas_full = 1
|
|
|
|
// Scratch memory used to render glyphs is full, requested size reported in 'val', you may need to bump up FONS_SCRATCH_BUF_SIZE.
|
|
|
|
scratch_full = 2
|
|
|
|
// Calls to fonsPushState has created too large stack, if you need deep state stack bump up FONS_MAX_STATES.
|
|
|
|
states_overflow = 3
|
|
|
|
// Trying to pop too many states fonsPopState().
|
|
|
|
states_underflow = 4
|
|
|
|
}
|