bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emmentaler*.otf not usable in JAVA application


From: Johannes Feulner
Subject: emmentaler*.otf not usable in JAVA application
Date: Sat, 13 Feb 2021 12:30:03 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi there,

updating from LilyPond 2.19.53 to 2.23.1 I found, that my Java application does not find emmentaler fonts anymore.

Probable reason: The fullname property (Vorzeigename) of the fonts is set to Untitled-1, it should be the same as the name property:

The following two changes fixed the problem for me:

diff --git a/mf/gen-emmentaler.fontforge.py b/mf/gen-emmentaler.fontforge.py
index 1e2a721..56bd43e 100644
--- a/mf/gen-emmentaler.fontforge.py
+++ b/mf/gen-emmentaler.fontforge.py
@@ -54,6 +54,7 @@ design_size = int(m.group(1))
 font = fontforge.font()
 font.familyname = "Emmentaler-%d" % design_size
 font.fontname = font.familyname
+font.fullname = "Emmentaler-%d" % design_size
 font.copyright = """This font is distributed under the GNU General Public License.
 As a special exception, if you create a document which uses
 this font, and embed this font or unaltered portions of this

diff --git a/mf/gen-emmentaler-brace.fontforge.py b/mf/gen-emmentaler-brace.fontforge.py
index 8cfea30..7ea739a 100644
--- a/mf/gen-emmentaler-brace.fontforge.py
+++ b/mf/gen-emmentaler-brace.fontforge.py
@@ -72,6 +72,7 @@ for c in "abcdefghi":

 font.fontname = "Emmentaler-Brace"
 font.familyname = "Emmentaler-Brace"
+font.fullname = "Emmentaler-Brace"
 font.weight = "Regular"
 font.copyright = "GNU GPL"
 font.version = version

Cheers,

Johannes

--
Johannes Feulner
Tel: +49 721 33500158  johannes.feulner@scorio.com

scorio GmbH  Bonhoefferweg 3   76327 Pfinztal
Geschäftsführer Johannes Feulner
Sitz der Gesellschaft Karlsruhe
Amtsgericht Mannheim HRB 713486



reply via email to

[Prev in Thread] Current Thread [Next in Thread]