Add font to recognized fonts

Lorenzo Bertini lorenzobertini97 at gmail.com
Tue Aug 30 09:52:10 UTC 2022


Il 30/08/22 08:58, Jürgen Spitzmüller ha scritto:
> Am Montag, dem 29.08.2022 um 22:44 +0200 schrieb Lorenzo Bertini:
>> Hello,
>>
>> I noticed there are some fonts available for Latex that do not appear
>> in
>> Lyx's document settings: an example is Caladea Font. This font comes
>> in
>> "texlive-font-extra" package in Debian, so it's something commonly
>> used.
>>
>> Right now I use "\usepackage{caladea}" in an "AddToPreamble" custom
>> layout section. How would I add it to Lyx's menu of recognized fonts?
>> To
>> be clear: document settings -> fonts section -> roman dropdown menu.
>>
>> Things I've found so far: GuiDocument uses FontModule class to fill
>> up the menu. Where would I go from here?
> 
> lib/latexfonts. The file has some documentation.
> 
> If you copy this file to your local lyx folder, you don't need to
> recompile.
> 
>>
>> Thanks in advance
>>
>> Lorenzo
> 
> HTH,

Easier than I thought, thanks! However, in the menu it says "not 
installed", and font is not applied (using \usepackage{caladea} works 
and font is installed properly). I just added

> +Font caladea
> +	GuiName          "Caladea"
> +	Family           rm
> +	Package          caladea
> +EndFont

How can I fix this? I tried reconfiguring / recompiling to no avail.

In the file it says that a change in that is a format change. Will this 
have to wait for Lyx 2.5?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 370 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220830/6a7fb5d8/attachment.bin>


More information about the lyx-devel mailing list