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?diff --git a/lib/latexfonts b/lib/latexfonts
index 3120233fd8..2759059eac 100644
--- a/lib/latexfonts
+++ b/lib/latexfonts
@@ -118,6 +118,12 @@ Font bookman
Package bookman
EndFont
+Font caladea
+ GuiName "Caladea"
+ Family rm
+ Package caladea
+EndFont
+
Font ccfonts
GuiName "Concrete Roman"
Family rm
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel