summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/minikin/Layout.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/libs/minikin/Layout.cpp b/libs/minikin/Layout.cpp
index db0667b..344766a 100644
--- a/libs/minikin/Layout.cpp
+++ b/libs/minikin/Layout.cpp
@@ -312,12 +312,6 @@ static hb_bool_t harfbuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoin
MinikinPaint* paint = reinterpret_cast<MinikinPaint*>(fontData);
MinikinFont* font = paint->font;
uint32_t glyph_id;
- /* HarfBuzz replaces broken input codepoints with (unsigned int) -1.
- * Skia expects valid Unicode.
- * Replace invalid codepoints with U+FFFD REPLACEMENT CHARACTER.
- */
- if (unicode > 0x10FFFF)
- unicode = 0xFFFD;
bool ok = font->GetGlyph(unicode, &glyph_id);
if (ok) {
*glyph = glyph_id;