Commit Graph

6 Commits

Author SHA1 Message Date
David Capello af6e8b65c3 Fix default font for CJK and other translations (fix #5210)
Now we use the correct fallback font with its size for non-existent
glyph in the sprite sheet font.
2025-06-11 14:40:56 -03:00
David Capello 816be744ac Add Widget::textBaseline() to fix several misalignments using scalable fonts
* Each widget can customize its text baseline (onGetTextBaseline()) to
  know where to draw text when it's vertically aligned to the middle
  (now more correctly "aligned to the baseline").
* Add PAINT_BASELINE to test where the baseline is on each widget.
* "Aseprite" and "Aseprite Mini" fonts now have a special
  descent/ascent configuration with a specific baseline position.
2025-03-27 18:22:51 -03:00
David Capello b9d4776301 Use a better font for Japanese on Windows 2017-04-13 17:08:46 -03:00
David Capello 2d6279163b Configure FreeType fonts for Ubuntu port 2017-03-16 14:32:28 -03:00
David Capello 147a8eb194 Add Unicode fonts on Windows for CJK 2017-03-07 14:53:40 -03:00
David Capello 867ab891bf Add way to mix spritesheet+truetype fonts 2017-02-24 17:56:57 -03:00