diff options
| author | Simon Tatham <anakin@pobox.com> | 2017-05-14 08:16:42 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2017-05-14 08:45:00 +0100 |
| commit | 90b5c251fd86c444f54184d0d30e3d6462cbb7ae (patch) | |
| tree | 5c1ea6256770bc3e8bac39dd06c07bb5a2fae389 /psdata.c | |
| parent | 72b1eb1cd3e6b07cdf93fb5f158cba21691b3052 (diff) | |
| download | halibut-90b5c251fd86c444f54184d0d30e3d6462cbb7ae.zip halibut-90b5c251fd86c444f54184d0d30e3d6462cbb7ae.tar.gz halibut-90b5c251fd86c444f54184d0d30e3d6462cbb7ae.tar.bz2 halibut-90b5c251fd86c444f54184d0d30e3d6462cbb7ae.tar.xz | |
Fill in the 'filetype' field for standard PS fonts.
This was another valgrind-spotted uninitialised variable. And although
you'd think the 'filetype' field is unimportant for fonts that aren't
loaded from a file anyway, it is important, because bk_pdf.c emits
different code for creating font subsets of Type 1 and TrueType fonts
- i.e. it needs to know what type the font has _after_ it's loaded,
not just how to load it.
Diffstat (limited to 'psdata.c')
| -rw-r--r-- | psdata.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4553,6 +4553,7 @@ void init_std_fonts(void) { font_info *fi = snew(font_info); fi->fontfile = NULL; fi->name = ps_std_fonts[i].name; + fi->filetype = TYPE1; /* for purposes of making subset fonts */ fi->widths = newtree234(width_cmp); for (j = 0; j < (int)lenof(fi->bmp); j++) fi->bmp[j] = NOGLYPH; |