[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
<style>
@font-face {
font-family: 'foobar';
src: url(data: application/font-woff2;
charset = utf-8;
base64, d09GMgABAAAAAA70AA8AAAAAGF ...)
format('woff2'),
font-weight: normal;
font-style: normal;
}
</style>
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.
Werner
- Re: \center-column broken, (continued)
- Re: \center-column broken, Werner LEMBERG, 2021/02/14
- Re: \center-column broken, Johannes Feulner, 2021/02/14
- Re: \center-column broken, Johannes Feulner, 2021/02/14
- Re: \center-column broken, Werner LEMBERG, 2021/02/14
- Re: \center-column broken, David Kastrup, 2021/02/14
- Re: \center-column broken, Jean Abou Samra, 2021/02/14
- Re: \center-column broken, Jonas Hahnfeld, 2021/02/14
- Re: \center-column broken, Werner LEMBERG, 2021/02/14
- Re: \center-column broken, Jean Abou Samra, 2021/02/14
- Re: \center-column broken, Johannes Feulner, 2021/02/15
- Re: \center-column broken,
Werner LEMBERG <=
- Re: \center-column broken, Johannes Feulner, 2021/02/15
- Re: \center-column broken, Werner LEMBERG, 2021/02/16
- Re: \center-column broken, Kevin Barry, 2021/02/16
- Re: \center-column broken, Werner LEMBERG, 2021/02/16