r17340 by jghali - #10600: Kerning is wrong with Junicode Regular font
scribus-commit
scribus-commit at lists.scribus.net
Sat Feb 25 22:41:35 UTC 2012
Author: jghali
Date: Sat Feb 25 22:41:35 2012
New Revision: 17340
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17340
Log:
#10600: Kerning is wrong with Junicode Regular font
Modified:
trunk/Scribus/scribus/fonts/scface_ttf.cpp
Modified: trunk/Scribus/scribus/fonts/scface_ttf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17340&path=/trunk/Scribus/scribus/fonts/scface_ttf.cpp
==============================================================================
--- trunk/Scribus/scribus/fonts/scface_ttf.cpp (original)
+++ trunk/Scribus/scribus/fonts/scface_ttf.cpp Sat Feb 25 22:41:35 2012
@@ -377,10 +377,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