Bug 618923 - Open Symbol font not seen by fontconfig
Summary: Open Symbol font not seen by fontconfig
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openoffice.org
Version: 5.7
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Caolan McNamara
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-28 05:01 UTC by Mattias Ellert
Modified: 2010-07-28 05:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-28 05:51:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mattias Ellert 2010-07-28 05:01:31 UTC
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 05:51:59 UTC
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.