Bug 618923 - Open Symbol font not seen by fontconfig
Open Symbol font not seen by fontconfig
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openoffice.org (Show other bugs)
5.7
All Linux
low Severity medium
: rc
: ---
Assigned To: Caolan McNamara
desktop-bugs@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-28 01:01 EDT by Mattias Ellert
Modified: 2010-07-28 01:51 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-28 01:51:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mattias Ellert 2010-07-28 01:01:31 EDT
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
Comment 1 David Tardon 2010-07-28 01:51:59 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.