mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Fix CI and replacement character (#133)
This commit is contained in:
@@ -18,7 +18,7 @@ QUIZ_CASE(ion_events_from_keyboard) {
|
||||
|
||||
// Test some fallbacks
|
||||
quiz_assert(Event(Key::EXE, false, false, false) == EXE);
|
||||
quiz_assert(Event(Key::EXE, true, false, false) == EXE);
|
||||
quiz_assert(Event(Key::EXE, true, false, false) == ShiftEXE);
|
||||
quiz_assert(Event(Key::EXE, false, true, false) == EXE);
|
||||
quiz_assert(Event(Key::EXE, true, true, false) == EXE);
|
||||
quiz_assert(Event(Key::EXE, false, true, true) == EXE);
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
CodePoint m_codePoint;
|
||||
GlyphIndex m_glyphIndex;
|
||||
};
|
||||
static constexpr GlyphIndex IndexForReplacementCharacterCodePoint = 134;
|
||||
static constexpr GlyphIndex IndexForReplacementCharacterCodePoint = 190;
|
||||
GlyphIndex indexForCodePoint(CodePoint c) const;
|
||||
|
||||
void setGlyphGrayscalesForCodePoint(CodePoint codePoint, GlyphBuffer * glyphBuffer) const;
|
||||
|
||||
@@ -155,7 +155,7 @@ KDFont::GlyphIndex KDFont::indexForCodePoint(CodePoint c) const {
|
||||
return endPair->glyphIndex();
|
||||
}
|
||||
NoMatchingGlyph:
|
||||
assert(SimpleCodePoints[IndexForReplacementCharacterCodePoint] == 0xFFFD);
|
||||
assert(ExtendedCodePoints[IndexForReplacementCharacterCodePoint] == 0xFFFD);
|
||||
return IndexForReplacementCharacterCodePoint;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user