From df70c6b3eba374859efd327eb693dfd3f7f95dcb Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sun, 22 Sep 2013 10:23:24 -0400 Subject: [PATCH] Add a check for multiple glyphs having the same calculated state For linechars, currently 47 and 48 have the same state which shouldn't be the case AFAIK. (cherry picked from commit 30023209feebb7d419ed450a23723012c6bb667a) --- src/fontembedder.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/fontembedder.cpp b/src/fontembedder.cpp index 985286ad8..313990eb9 100644 --- a/src/fontembedder.cpp +++ b/src/fontembedder.cpp @@ -27,6 +27,8 @@ #include #include +#include + using namespace std; static quint32 charVal(QChar val) @@ -75,6 +77,8 @@ int main(int argc, char **argv) QTextStream input(&inFile); quint32 glyphStates[128]; + QMap glyphMap; + for (int i = 0; i < 128; ++i) glyphStates[i] = 0; //nothing.. @@ -94,6 +98,13 @@ int main(int argc, char **argv) glyph = glyph - 0x2500; glyphStates[glyph] = readGlyph(input); + // kWarning()<