Hi David,

Thanks for your contribution as well! I hadn't heard of the fonts-unifont 
package before. 

Unfortunately, it looks like "fonts-unifont" only includes .ttf files in Debian 
11 Bullseye. In Debian 12 Bookworm and onward, they're .otf files which Koha 
can't use.

For Ubuntu... looks like Ubuntu 22.04 Jammy has the .ttf version while Ubuntu 
24.04 noble and onwards has the .otf version.

So looks like it'll be a mixed bag there. 

But it's got me thinking. Maybe we can include the Unifont .ttf in Koha and 
provide a "Unifont" option in the Label creator as a backup option for people 
without other options.

David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia

Office: 02 9212 0899

-----Original Message-----
Date: Wed, 26 Feb 2025 21:17:23 +0100
From: David Liddle <da...@liddles.net>
To: koha@lists.katipo.co.nz
Cc: ykleu...@msn.com
Subject: Re: [Koha] Printing spine labels in non-Roman characters,
        Thai in particular
Message-ID:
        <cap3zdfzuudgkku8iduk5fs2txnxsjroh6pmoswjwngkpr8y...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Thank you, David, for chiming in with immensely useful information! I
manage another system with which Michael is familiar, and your contribution
has helped me understand it better. (I came into administration of this
server only a few years ago. At one point, I discovered that there is a
crazy number of font packages installed, and I wasn't sure why.)

Michael, if it helps, the Debian package "fonts-unifont" is installed on
our server. The relevant section of "koha-conf.xml" reads as follows:

 <!-- true type font mapping according to type from $font_types in
C4/Creators/Lib.pm -->
 <ttf>
    <font type="Ft1" >/usr/share/fonts/truetype/unifont/unifont.ttf</font>
    <font type="Ft2"
>/usr/share/fonts/truetype/unifont/unifont_upper.ttf</font>
    <font type="TR"
>/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf</font>
    <font type="TB"
>/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf</font>
    <font type="TI"
>/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf</font>
    <font
type="TBI">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf</font>
    <font type="C"  >/usr/share/fonts/truetype/unifont/unifont.ttf</font>
    <font type="CB"
>/usr/share/fonts/truetype/unifont/unifont_upper.ttf</font>
    <font type="CO"
>/usr/share/fonts/truetype/unifont/unifont_csur.ttf</font>
    <font
type="CBO">/usr/share/fonts/truetype/unifont/unifont_csur.ttf</font>
    <font type="H"  >/usr/share/fonts/truetype/unifont/unifont.ttf</font>
    <font type="HB"
>/usr/share/fonts/truetype/unifont/unifont_upper.ttf</font>
    <font type="HO"
>/usr/share/fonts/truetype/unifont/unifont_csur.ttf</font>
    <font
type="HBO">/usr/share/fonts/truetype/unifont/unifont_csur.ttf</font>
 </ttf>

I can't immediately explain the added entries, or why some of the default
types continue to use DejaVu. But if spine labels work in Thai from there,
then perhaps the same or similar configuration will work for the system you
and Fred have put together.

All the best,

David Liddle
System Administrator

_______________________________________________

Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to