X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdraw%2Fao_draw.h;h=96e334981bcf91825b564deb77e48ebca5dad558;hb=d1fd9055898fb07033b80f3d9d677a97d485fb2f;hp=7f1a413cd980be8ed87d10b0dcb9fce261194996;hpb=f9103d13f620cb06642aacdff9dcaf05e87d671f;p=fw%2Faltos diff --git a/src/draw/ao_draw.h b/src/draw/ao_draw.h index 7f1a413c..96e33498 100644 --- a/src/draw/ao_draw.h +++ b/src/draw/ao_draw.h @@ -103,6 +103,14 @@ struct ao_glyph_metrics { int8_t advance; }; +struct ao_text_metrics { + int16_t width; + int16_t height; + int16_t x_off; + int16_t y_off; + int16_t advance; +}; + struct ao_font { const uint8_t *bytes; const uint16_t *pos; @@ -169,6 +177,10 @@ ao_text(struct ao_bitmap *dst, uint32_t fill, uint8_t rop); +int16_t +ao_text_width(const struct ao_font *font, + const char *string); + void ao_logo_poly(struct ao_bitmap *dst, const struct ao_transform *transform,