Re: SVG fonts

2015-11-27 Thread tisimst
Andrew,

I have seen similar hit-and-miss results with text fonts when exporting to
SVG. I can't tell what's driving the inconsistent results.

Best,
Abraham

On Friday, November 20, 2015, Andrew Bernard [via Lilypond] <
ml-node+s1069038n183886...@n5.nabble.com> wrote:

> More investigation on fonts for SVG.
>
> The following errors out if the font-name property for DynamicText is set.
> The font-name specification for TextScript renders correctly.
>
> \version "2.19.31"
>
> {
>   \override DynamicText.font-name = "Noto Serif Bold Italic"
>   c''\p
>   \override TextScript.font-name = "Noto Serif Bold Italic"
>   c''^\markup { foo }
> }
>
> According to the NR DynamicText supports the font-interface, so one ought
> to e=be able to specify the font-name property.
>
> error:
>
> Layout output to
> `exp-svg-font.svg'.../usr/share/guile/1.8/ice-9/regex.scm:121:22: In
> procedure vector-ref in expression (vector-ref match matchnum):
> /usr/share/guile/1.8/ice-9/regex.scm:121:22: Wrong type argument in
> position 2: 1
>
> In relation to my question in prior post as to whether fontforge can be
> used to generate SVG fonts for lilypond, I see that the emmentaler SVG
> fonts are created with font forge, so I assume this means it is the right
> tool for the job?
>
> Andrew
>
>
>
> ___
> lilypond-user mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node=183886=0>
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://lilypond.1069038.n5.nabble.com/SVG-fonts-tp183885p183886.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> <javascript:_e(%7B%7D,'cvml','ml-node%2bs1069038n...@n5.nabble.com');>
> To unsubscribe from Lilypond, click here
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=2=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=>
> .
> NAML
> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/SVG-fonts-tp183885p184196.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


SVG fonts

2015-11-20 Thread Andrew Bernard
I am attempting to produce SVG output from lilypond 2.19.31.

The score uses specific fonts, such as the following:

  \override DynamicText.font-name = "Noto Serif Bold Italic"

The current release produces a less than useful error when the SVG font cannot 
be found:

warning: cannot find SVG font #f

I have prepared a patch for this which now gives the name of the file that 
cannot be found.

To come to the next point, I have used fontforge to make an SVG version of Noto 
Serif Bold Italic, and placed it in the lilypond svg font directory as 
notoserif-bolditalic.svg (the name of which I was able to determine via the 
above mentioned warning patch I have developed).

But lilypond produces the following error with this SVG font installed:

Layout output to 
`exp-svg-font.svg'.../usr/share/guile/1.8/ice-9/regex.scm:121:22: In procedure 
vector-ref in expression (vector-ref match matchnum):
/usr/share/guile/1.8/ice-9/regex.scm:121:22: Wrong type argument in position 2: 
1

The score does not compile.

Hence, two questions.
Can you use fonts converted to SVG by fontforge in lilypond?
If so, what is this error?
Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: SVG fonts

2015-11-20 Thread Andrew Bernard
More investigation on fonts for SVG.

The following errors out if the font-name property for DynamicText is set. The 
font-name specification for TextScript renders correctly.

\version "2.19.31"

{
  \override DynamicText.font-name = "Noto Serif Bold Italic"
  c''\p
  \override TextScript.font-name = "Noto Serif Bold Italic"
  c''^\markup { foo }
}

According to the NR DynamicText supports the font-interface, so one ought to 
e=be able to specify the font-name property.

error:

Layout output to 
`exp-svg-font.svg'.../usr/share/guile/1.8/ice-9/regex.scm:121:22: In procedure 
vector-ref in expression (vector-ref match matchnum):
/usr/share/guile/1.8/ice-9/regex.scm:121:22: Wrong type argument in position 2: 
1

In relation to my question in prior post as to whether fontforge can be used to 
generate SVG fonts for lilypond, I see that the emmentaler SVG fonts are 
created with font forge, so I assume this means it is the right tool for the 
job?

Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user