[Koha-devel] Adding fonts to Koha for label creator

Christopher Nighswonger chris.nighswonger at gmail.com
Mon May 4 14:50:48 CEST 2020


On Mon, May 4, 2020 at 6:25 AM Bernardo Gonzalez Kriegel <
bgkriegel at gmail.com> wrote:

> Hi David,
>
>
>> How does one add fonts to Koha for the label creator?
>>
>>
>>
>> I’m curious about adding “Arial” ( or rather LiberationSans-Regular.ttf
>> as matched by fc-match) and “Arial Bold” (or rather Roboto-Regular.ttf as
>> matched by fc-match) to the Koha label creator.
>>
>>
>>
>> I see we have a hard-coded list of font types in C4/Creators/Lib.pm.
>> There is also a list of TTF files in etc/koha-conf.xml.
>>
>
> Changing paths in koha-conf.xml is enough, replacing entries for H and HB
> or any other.
>
>
Hard-coded fonts are effectively defaults. They are installed by a
dependency (I don't recall which atm.).

Substituting fonts is done as Bernardo pointed out.

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200504/b0fe8b05/attachment.htm>


More information about the Koha-devel mailing list