[Top][All Lists]

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

Re: \center-column broken

From: Werner LEMBERG
Subject: Re: \center-column broken
Date: Mon, 15 Feb 2021 21:06:42 +0100 (CET)

>> IMHO, this is as good (or as bad) as a default as 'serif'.  If you
>> want SVG images to be similar to, say, PDF output, you have
>>    * to exactly specify which font you want to use for text, and
>>    * to convert glyphs to paths, for example, by postprocessing
>>      LilyPond's output SVG file with inkscape's `-T` option.
> Could we possibly offer the option to embed the fonts inside of the
> SVG file [...]

This is a non-trivial issue.  It's rather straightforward to embed
fonts into an SVG file using

    @font-face {
      font-family: 'foobar';
      src: url(data: application/font-woff2;
               charset = utf-8;
               base64, d09GMgABAAAAAA70AA8AAAAAGF ...)
      font-weight: normal;
      font-style: normal;

The tricky part, however, is font subsetting to make the SVG files
small.  IMHO, this is outside of LilyPond's scope.

Another possibility is creating a PDF with LilyPond, then loading it
into inkscape, which can automatically convert all fonts to paths.
This way, you get SVGs that are identical to the PDFs – I think this
is good enough for having scalable images on web pages and the like.


reply via email to

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