Summary: | FcPatternGetString() does not return "TrueType" for FC_FONTFORMAT on Solaris 10 SPARC | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Matthias Apitz <guru> |
Component: | library | Assignee: | fontconfig-bugs |
Status: | RESOLVED NOTABUG | QA Contact: | Behdad Esfahbod <freedesktop> |
Severity: | normal | ||
Priority: | medium | CC: | akira, guru |
Version: | 2.11 | ||
Hardware: | SPARC | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | output of fc-match on SPARC |
Description
Matthias Apitz
2016-01-26 11:38:59 UTC
Please check if you have HAVE_FT_GET_X11_FONT_FORMAT in config.h. aside from that, apparently charset is also wrong. maybe good to add a line "#define CHECK 1" in src/fcfreetype.c and build. you can see some clue for that wrong charset. I activated HAVE_FT_GET_X11_FONT_FORMAT in config.h (which was not there) and now the fontformat is recognized as "TrueType" and the filter of CUPS "texttopdf" is happy. The other change (#define CHECK 1 in src/fcfreetype.c) produces tons of error messages of the type x0000007f FT says 0 FC says 1 x00000080 FT says 0 FC says 1 x00000081 FT says 0 FC says 1 ... and Bitmap extra char .... while running fc-cache during 'gmake install' (In reply to Matthias Apitz from comment #2) > I activated HAVE_FT_GET_X11_FONT_FORMAT in config.h (which was not there) Hmm, well, it isn't something adds by the hand. check config.log. you'll see why it wasn't added there. > and now the fontformat is recognized as "TrueType" and the filter of CUPS > "texttopdf" is happy. > > The other change (#define CHECK 1 in src/fcfreetype.c) produces tons of > error messages of the type > > x0000007f FT says 0 FC says 1 > x00000080 FT says 0 FC says 1 > x00000081 FT says 0 FC says 1 > ... > > and > > Bitmap extra char .... > > while running fc-cache during 'gmake install' well, it shouldn't be different. apparently some logic to store the charset in fontconfig seems not work on sparc. dunno why. need to investigate more. though I don't have sparc machine here. after setting correct values for some PKG_* environment values, pointing to the correct locations, in my case: PKG_CONFIG_PATH=/usr/local/sisis-pap/lib/pkgconfig export PKG_CONFIG_PATH PKG_CONFIG=/usr/local/bin/pkgconf export PKG_CONFIG the ./configure run detects the required functions correctly; the main problem on this SPARC Solaris 10 server is, that a lot of outdated OpenSource components are installed in other places (like for example /usr/swf/...) and get in the way if one wants to compile clean a new suite; that's why the above target dirs are chosen; I think we can close this issue; If you need to test something on SPARC, here I am. (In reply to Matthias Apitz from comment #4) > after setting correct values for some PKG_* environment values, pointing to > the correct locations, in my case: > > PKG_CONFIG_PATH=/usr/local/sisis-pap/lib/pkgconfig export PKG_CONFIG_PATH > PKG_CONFIG=/usr/local/bin/pkgconf export PKG_CONFIG > > the ./configure run detects the required functions correctly; > > the main problem on this SPARC Solaris 10 server is, that a lot of outdated > OpenSource components are installed in other places (like for example > /usr/swf/...) and get in the way if one wants to compile clean a new suite; > that's why the above target dirs are chosen; > > > I think we can close this issue; > > If you need to test something on SPARC, here I am. So charset is same to linux's now right? Created attachment 121343 [details]
output of fc-match on SPARC
I am not an expert of fonts. I'm attaching the output of
/usr/local/sisis-pap/cups2/bin/fc-match -s -v FreeMono
on Solaris 10 SPARC.
obviously it looks difference to what you initially reported. so should be fine. will close this then. thanks. |
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.