From 98882ff7a6b8a53aab3639b51d3df57762085ba0 Mon Sep 17 00:00:00 2001 From: David PHAM-VAN Date: Sun, 3 Dec 2023 08:29:32 -0400 Subject: [PATCH] Update changelog --- pdf/CHANGELOG.md | 1 + pdf/lib/src/pdf/font/ttf_writer.dart | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pdf/CHANGELOG.md b/pdf/CHANGELOG.md index 72d9f7d1..08fd97fe 100644 --- a/pdf/CHANGELOG.md +++ b/pdf/CHANGELOG.md @@ -3,6 +3,7 @@ ## 3.10.7 - Fix empty lines text gap +- Fix lookup index of glyph for space character [Hendrik-Brower] ## 3.10.6 diff --git a/pdf/lib/src/pdf/font/ttf_writer.dart b/pdf/lib/src/pdf/font/ttf_writer.dart index d6a57ec4..eddf1519 100644 --- a/pdf/lib/src/pdf/font/ttf_writer.dart +++ b/pdf/lib/src/pdf/font/ttf_writer.dart @@ -74,7 +74,8 @@ class TtfWriter { for (final char in chars) { if (char == 32) { - final glyph = TtfGlyphInfo(ttf.charToGlyphIndexMap[char]!, Uint8List(0), const []); + final glyph = TtfGlyphInfo( + ttf.charToGlyphIndexMap[char]!, Uint8List(0), const []); glyphsMap[glyph.index] = glyph; charMap[char] = glyph.index; continue;