bug-lilypond
[Top][All Lists]
Advanced

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

Re: emmentaler*.otf not usable in JAVA application


From: James
Subject: Re: emmentaler*.otf not usable in JAVA application
Date: Sat, 13 Feb 2021 13:11:50 +0000
User-agent: Evolution 3.36.4-0ubuntu1

On Sat, 2021-02-13 at 12:30 +0100, Johannes Feulner wrote:
> 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

Thanks.

https://gitlab.com/lilypond/lilypond/-/issues/6095

James




reply via email to

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