Bug 3432 - [kpdf] truetype font collection (ttc) support
Summary: [kpdf] truetype font collection (ttc) support
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Kristian Høgsberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3427
  Show dependency treegraph
 
Reported: 2005-05-30 03:56 UTC by Kristian Høgsberg
Modified: 2006-03-19 09:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
ttc support patch (13.33 KB, patch)
2005-05-30 03:57 UTC, Kristian Høgsberg
Details | Splinter Review

Description Kristian Høgsberg 2005-05-30 03:56:45 UTC
Poppler should support TTC files.  Albert:

Patch i got for kpdf from Takashi Iwai <tiwai AT suse DOT de> adapted to 
poppler

TTC is TrueType font Collection, that is more than a TTF in the same file, 
this adds support to specifying them in the /etc/xpdfrc file adding a number 
at the end of the displayFontTT line, the cool thing is that it can be easily 
adapted to the fontconfig patch i sent changing 

if (!strncasecmp(ext,".ttf",4)) {
	  dfp = new DisplayFontParam(fontName->copy(), displayFontTT);  
   	  dfp->tt.fileName = new GooString((char*)s);
}

to 

if (!strncasecmp(ext,".ttf",4) || !strncasecmp(ext,".ttc",4)) {
	  dfp = new DisplayFontParam(fontName->copy(), displayFontTT);  
   	  dfp->tt.fileName = new GString((char*)s);
   	  FcPatternGetInteger(m, FC_INDEX, 0, &(dfp->tt.faceIndex));
}

Some CJK fonts come in ttc format
Comment 1 Kristian Høgsberg 2005-05-30 03:57:20 UTC
Created attachment 2796 [details] [review]
ttc support patch
Comment 2 Albert Astals Cid 2006-03-20 04:02:36 UTC
done 


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.