Bug 618923
| Summary: | Open Symbol font not seen by fontconfig | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Mattias Ellert <mattias.ellert> |
| Component: | openoffice.org | Assignee: | Caolan McNamara <caolanm> |
| Status: | CLOSED NOTABUG | QA Contact: | desktop-bugs <desktop-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.7 | CC: | dtardon |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-07-28 05:51:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
That font is placed in /usr/lib*/openoffice.org/basis3.1/share/fonts/truetype/ on RHEL 5.5. The font was not visible to fontconfig through RHEL 5.0 to RHEL 5.4 (just the directory was different), so there is no change there. If you really want to use it, add a dir entry for the directory to your fontconfig configuration. |
Description of problem: Trying to use the Open Symbol font through fontconfig fails on RHEL5 Version-Release number of selected component (if applicable): openoffice.org-core-3.1.1-19.5.el5_5.1 How reproducible: Always Steps to Reproduce: #include <iostream> #include <fontconfig/fontconfig.h> int main() { FcPattern *pat, *match; FcResult result; char *family; char *file; int index; FcInit(); pat = FcPatternCreate (); FcPatternAddString (pat, FC_FAMILY, (const FcChar8*)"open symbol"); FcPatternAddInteger (pat, FC_WEIGHT, FC_WEIGHT_NORMAL); FcPatternAddInteger (pat, FC_SLANT, FC_SLANT_ROMAN); FcConfigSubstitute (NULL, pat, FcMatchPattern); FcDefaultSubstitute (pat); match = FcFontMatch (NULL, pat, &result); FcPatternGetString (match, FC_FAMILY, 0, (FcChar8**)&family); FcPatternGetString (match, FC_FILE, 0, (FcChar8**)&file); FcPatternGetInteger (match, FC_INDEX, 0, &index); std::cout << family << std::endl; std::cout << file << std::endl; std::cout << index << std::endl; } Actual results (as seen on RHEL 5): DejaVu LGC Sans /usr/share/fonts/dejavu-lgc/DejaVuLGCSans.ttf 0 Expected results (as seen on Fedora 12 and 13): OpenSymbol /usr/share/fonts/opensymbol/opens___.ttf 0