r17339 by jghali - #10600: Kerning is wrong with Junicode Regular font
scribus-commit
scribus-commit at lists.scribus.net
Sat Feb 25 22:40:58 UTC 2012
Author: jghali
Date: Sat Feb 25 22:40:58 2012
New Revision: 17339
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17339
Log:
#10600: Kerning is wrong with Junicode Regular font
Modified:
branches/Version14x/Scribus/scribus/fonts/scface_ttf.cpp
Modified: branches/Version14x/Scribus/scribus/fonts/scface_ttf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17339&path=/branches/Version14x/Scribus/scribus/fonts/scface_ttf.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/fonts/scface_ttf.cpp (original)
+++ branches/Version14x/Scribus/scribus/fonts/scface_ttf.cpp Sat Feb 25 22:40:58 2012
@@ -374,10 +374,21 @@
quint16 End ( toUint16 ( ClassRangeRecord + ( CRR * 6 ) + 2 ) );
quint16 Class ( toUint16 ( ClassRangeRecord + ( CRR * 6 ) + 4 ) );
- for ( int gl ( Start ); gl <= (int) End; ++gl )
- {
- excludeList<< (quint16) gl;
- ret[Class] << gl;
+ if (Start <= End)
+ {
+ for ( int gl ( Start ); gl <= (int) End; ++gl )
+ {
+ excludeList<< (quint16) gl;
+ ret[Class] << gl;
+ }
+ }
+ else
+ {
+ for ( int gl ( Start ); gl >= (int) End; --gl )
+ {
+ excludeList<< (quint16) gl;
+ ret[Class] << gl;
+ }
}
}
}
More information about the scribus-commit
mailing list