Bug 618923 - Open Symbol font not seen by fontconfig
Open Symbol font not seen by fontconfig
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openoffice.org (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Caolan McNamara
Depends On:
  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:
Last Closed: 2010-07-28 01:51:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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):

How reproducible:

Steps to Reproduce:

#include <iostream>
#include <fontconfig/fontconfig.h>

int main() {
  FcPattern *pat, *match;
  FcResult result;
  char *family;
  char *file;
  int index;

  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

Expected results (as seen on Fedora 12 and 13):

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.