packages: swftools/swftools-swfstrings-print_unknown_chars.patch (NEW) - if...
sparky
sparky at pld-linux.org
Mon Jan 18 14:42:26 CET 2010
Author: sparky Date: Mon Jan 18 13:42:26 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- if fonts can't be read print glyphs as <?XX> where XX is the glyph number:
<?20><?4><?13><?7><?4><?9>
---- Files affected:
packages/swftools:
swftools-swfstrings-print_unknown_chars.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/swftools/swftools-swfstrings-print_unknown_chars.patch
diff -u /dev/null packages/swftools/swftools-swfstrings-print_unknown_chars.patch:1.1
--- /dev/null Mon Jan 18 14:42:26 2010
+++ packages/swftools/swftools-swfstrings-print_unknown_chars.patch Mon Jan 18 14:42:21 2010
@@ -0,0 +1,17 @@
+--- swftools-0.9.0/lib/modules/swftext.c~ 2009-01-27 18:18:37.000000000 +0100
++++ swftools-0.9.0/lib/modules/swftext.c 2010-01-18 14:29:10.530704314 +0100
+@@ -447,8 +447,12 @@
+
+ if (id == fid) {
+ if (jobs & FEDTJ_PRINT) {
+- int code = f->glyph2ascii[glyph];
+- printf("%lc", code);
++ if ( f->glyph2ascii ) {
++ int code = f->glyph2ascii[glyph];
++ printf("%lc", code);
++ } else {
++ printf("<?%d>", glyph);
++ }
+ }
+ if (jobs & FEDTJ_MODIFY)
+ f->glyph[glyph].advance = adv * 20; //?
================================================================
More information about the pld-cvs-commit
mailing list