Closed nptr closed 2 years ago
This is awesome, thanks.
I'm from an English-speaking country so I don't have a lot of experience with UTF-8 and I18n. These are desirable features, though, so I really appreciate you taking the time implementing them.
Hello Werner,
of recently I had the need for freetype font rendering but my needs exceed the current capabilities it seems. I took the freedom to expand the library a bit and would like to propose this changes:
bm_text_measure()
to measure text width and height in one pass where possible. (Maybe replacingbm_text_width()
andbm_text_height()
some time?)Remarks
ToDos
\t
handling for text measurement. I should add it again._utf8_get_next_codepoint()
is duplicated (bmp.c
andftfont.c
) because I didn't want to expose it in bmp.h.Please let me know what you think, what works and what doesn't work for you. I'll try to accommodate the feedback in follow-up commits and then squash them into one.