From c4faf58ff0c8a889bbe47c8ea1c90238a1bb9d08 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Tue, 29 Oct 2024 15:43:27 -0700 Subject: [PATCH] freetype: roll back to freetype version 2.9.1 tag VER-2-9-1 Starting with freetype 2.10.0, the sum of the ascent and descent values seem to be more likely to be less than the baseline-to-baseline measurement (called the font's height), which is the font designer's recommend distance between baselines. However, OpenFL doesn't account for the full baseline-to-baseline height at all, so with smaller ascent and descent values, lines render with smaller gaps between them. OpenFL needs to update its TextEngine algorithm to use the height of the line instead of adding ascent and descent together alone, and then we can update freetype. Updating TextEngine is not a trivial change, and may likely require time to discover bugs and stabilize, so it's better to roll back the freetype update for now, and apply it again later after OpenFL can handle it properly. --- project/lib/freetype | 2 +- project/lib/freetype-files.xml | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/project/lib/freetype b/project/lib/freetype index e8ebfe988b..86bc8a9505 160000 --- a/project/lib/freetype +++ b/project/lib/freetype @@ -1 +1 @@ -Subproject commit e8ebfe988b5f57bfb9a3ecb13c70d9791bce9ecf +Subproject commit 86bc8a95056c97a810986434a3f268cbe67f2902 diff --git a/project/lib/freetype-files.xml b/project/lib/freetype-files.xml index c9e9e69e58..15e0c3476a 100644 --- a/project/lib/freetype-files.xml +++ b/project/lib/freetype-files.xml @@ -110,7 +110,13 @@ - + + + + + + + @@ -120,13 +126,8 @@ - - - - -