Sizes are in drawing units. With pixel_scale above 1 (a Retina window) the glyphs are rasterized
at pixel_height * pixel_scale device pixels and drawn at 1/pixel_scale, so text stays sharp.
get_font_at_size :: (
path: string,
name: string,
pixel_height: int,
pixel_scale := 1.0
) -> *Dynamic_Font
Sizes are in drawing units. With pixel_scale above 1 (a Retina window) the glyphs are rasterized
at pixel_height * pixel_scale device pixels and drawn at 1/pixel_scale, so text stays sharp.
Parameters
- path: string
- name: string
- pixel_height: int
- pixel_scale := 1.0
Returns
get_font_at_size :: (
memory: [] u8,
pixel_height: int,
pixel_scale := 1.0
) -> *Dynamic_Font
Parameters
- memory: [] u8
- pixel_height: int
- pixel_scale := 1.0