Page 1 of 1

[Solved] Barcode Fonts on Linux not visible

Posted: Thu Oct 23, 2008 6:13 pm
by byrnejb
OS = CentOS-5.2 (RedHat EL5)
OOo = 2.4.1

Font file = IDAutomationHC39M.ttf

I installed this font in /usr/share/fonts/barcodes

I then ran mkfontdir and ttmkfdir in /usr/share/fonts/barcodes. I next created a file /etc/fonts/local.conf with the following contents:

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/ilocal.conf file to configure customized system font access -->
<fontconfig>

  <dir>/usr/share/fonts/barcodes</dir>
  <dir>/usr/share/fonts/other-ttf</dir>
  <dir>/usr/share/fonts/webcore</dir>

</fontconfig>
and ran fc-cache -f in /etc/fonts.

I followed the instructions in the Barcode Tutorial of OOo / Star Office to configure writer, omitting the macros since these are 3-of-9 codes.

Now, all of the fonts found in other-ttf and webcore display in the openoffice writer font list but the barcode font is missing. What am I doing wrong?

P.S. I cannot use spadmin to install fonts becasuse I get this when I run it:

# /opt/org.openoffice/OOo-Current/program/spadmin
libGL warning: 3D driver claims to not support visual 0x4b
/opt/org.openoffice/OOo-Current/program/spadmin: line 254: 12181 Segmentation fault "$sd_prog/$sd_binary" "$@"

Re: Barcode Fonts on Linux not visible

Posted: Thu Oct 23, 2008 7:29 pm
by acknak
See this thread/message for some suggestions that may help you as well: http://user.services.openoffice.org/en/ ... 042#p51953

Specifically, try "fc-list" to see if fontconfig has picked up the font.

Re: Barcode Fonts on Linux not visible

Posted: Thu Oct 23, 2008 8:02 pm
by byrnejb
Well, fc-list did not see the barcode font. However, following the suggestion in the post that you provided I copied the ,ttf file into a newly created ~/.fonts directory and now it appears in OOo writer (for that user only of course).

This is an odd occurrence because I had this exact font installed system-wide on this host for OOo version 2.3.x.

Re: [Solved] Barcode Fonts on Linux not visible

Posted: Fri May 21, 2010 3:19 pm
by byrnejb
This is somewhat late but I believe that I finally tracked down the original cause of the problem. It appears that the barcode font file that I was using was distributed with its file permissions set incorrectly. When I had cause to change systems recently I ran into the exact same problem again with the same font and I discovered that the file mode on the extracted ttf file was set to 600. When I changed the file mode to 664 the font appeared in the OOo3 applications without having to copy it into the local users .font directory.

Re: [Solved] Barcode Fonts on Linux not visible

Posted: Fri May 21, 2010 5:31 pm
by acknak
Great! Thanks for the follow-up.