[Solved] Barcode Fonts on Linux not visible

Issues with installing under all GNU/Linux Distributions
Post Reply
byrnejb
Posts: 10
Joined: Mon Jun 30, 2008 2:44 pm

[Solved] Barcode Fonts on Linux not visible

Post 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" "$@"
Last edited by Hagar Delest on Thu Oct 23, 2008 10:16 pm, edited 1 time in total.
Reason: tagged [Solved]
OOo 2.4.X on Linux-Other + Microsoft Windows XP pro
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Barcode Fonts on Linux not visible

Post 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.
AOO4/LO5 • Linux • Fedora 23
byrnejb
Posts: 10
Joined: Mon Jun 30, 2008 2:44 pm

Re: Barcode Fonts on Linux not visible

Post 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.
OOo 2.4.X on Linux-Other + Microsoft Windows XP pro
byrnejb
Posts: 10
Joined: Mon Jun 30, 2008 2:44 pm

Re: [Solved] Barcode Fonts on Linux not visible

Post 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.
OOo 2.4.X on Linux-Other + Microsoft Windows XP pro
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved] Barcode Fonts on Linux not visible

Post by acknak »

Great! Thanks for the follow-up.
AOO4/LO5 • Linux • Fedora 23
Post Reply