]> git.pld-linux.org Git - packages/swftools.git/commitdiff
- if fonts can't be read print glyphs as <?XX> where XX is the glyph number:
authorsparky <sparky@pld-linux.org>
Mon, 18 Jan 2010 13:42:21 +0000 (13:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  <?20><?4><?13><?7><?4><?9>

Changed files:
    swftools-swfstrings-print_unknown_chars.patch -> 1.1

swftools-swfstrings-print_unknown_chars.patch [new file with mode: 0644]

diff --git a/swftools-swfstrings-print_unknown_chars.patch b/swftools-swfstrings-print_unknown_chars.patch
new file mode 100644 (file)
index 0000000..b3f4e4f
--- /dev/null
@@ -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;     //?
This page took 0.590958 seconds and 4 git commands to generate.