Open main menu
Archive This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.

Fonts in SVG?

Can I actually use anything else besides MS pack (Times New Roman etc.) and DejaVu series?

This preview sort of promises the possibility of using the "Charter" face, at least, but only the SVG browse works with "Charter", the PNG preview is generated with DejaVu Sans and the layout goes bad. Yury Tarasievich (talk) 19:30, 23 April 2016 (UTC)

Right, and the image in question is File:Italia 1494 topo-ru.svg. Yury Tarasievich (talk) 19:34, 23 April 2016 (UTC)

The link you posted isn't a "preview" but the source SVG which loads the font from your local font library instead of Wikimedia server. Check out the media description page or its full size PNG render from Wikimedia server. If you want similar preview off-line/locally, you must install the same font on your computer. Anyway the Bitstream/Charter type seemingly falls back to another font (possibly DejaVu Sans) which indicates that both types on Wikimedia do not contain Cyrillic glyphs. File:Italia 1494 topo-ru.svg uses "DejaVu Serif Condensed".-- Sameboat - 同舟 (talk · contri.) 01:55, 24 April 2016 (UTC)
All right, not a "preview", but a demo of what's possible; that was what I wanted. There are lots of those here, none authoritative (?).
Also, it seems additionally one has to account for specifics of "playing" the Inkscape SVG on the MediaWiki renderer. Okay, so I've switched to DejaVu family, which: 1) has Cyrillics for ages and 2) is ubiquitous. Also I've found the December 2015 post with the similar font problem, and by the advice given there I've rewrote the font definitions in SVG from form with apostrophes and commas (there's an Inkscape addon helping to do that).
However, 1) I can't guess the "proper" form of string for anything not Normal/Regular (e.g., DejaVu Serif Condensed Bold isn't okay) and 2) after such "tuning" the SVG doesn't show correctly in the Firefox (it did before); 3) curved text isn't displayed at all.
So, the question is rather: is there a SVG file with features and fonts, accounting for SVGs actually produced by Inkscape, and showing "do's" and "dont's" with regard to the actual MediaWiki renderer capabilities? Yury Tarasievich (talk) 05:02, 24 April 2016 (UTC)
And yes, I've seen the meta:SVG fonts. It says, e.g., that URW pack is from distro; now, URW pack has Cyrillics for, like, 10 years. However, Cyrillic string in "URW Bookman" is rendered with fallback (DejaVu Sans?). Liberation family also didn't work "out from the Inkscape". Yury Tarasievich (talk) 05:10, 24 April 2016 (UTC)
To answer some of your questions: There is no good and up-to-date explanation for font usage. Since other Problems are going to be fixed its will be the most painful issue with SVG soon. And actually URW Bookman isn't on font list. Please read carefully and look at https://noc.wikimedia.org/conf/fc-list. My recommendation is
My short POV is here.
What Inkscape version do you use? It shouldn't generate font-family:DejaVu Serif Condensed Bold but something like font-family:DejaVu;font-weight:Serif Condensed Bold. As far as I remember your formatting style was once present and has been abandoned.
Curved Text isn't supported at all by librsvg.
Apostrophes and comma should be no longer an issue. Please confirm.
--Menner (talk) 07:30, 24 April 2016 (UTC)
I believe I've read all the basics which are on Commons, and parts of the material seem to be mutually contradicting. E.g., there was a mention of `fc-list` content not 100% pertaining to the actual fonts used in the SVG renderer output.
Inkscape is at 0.91 r13725 here. Things like these definitely go into its SVG:
font-family:'DejaVu Sans Condensed';-inkscape-font-specification:'DejaVu Sans Condensed,';
font-family:'DejaVu Serif';-inkscape-font-specification:'DejaVu Serif, Semi-Condensed';
Maybe there's an option in preferences or something. However, if there's no curved text at all, all this is a non-issue w/r to the map creation. Yury Tarasievich (talk) 08:42, 24 April 2016 (UTC)
I think you inherited font types from an old SVG file.
When I create a new Text with Inkscape 0.91 I get font-stretch:semi-condensed;font-family:'DejaVu Sans';-inkscape-font-specification:'DejaVu Sans, Semi-Condensed'
Remove the "Condensed" from font name in Inkscape should solve the issue and make it "Semi-Condensed" in Shift+Cntrl+T dialog again.
Oddly adding "Condensed" to font name in Inkscape creates condensed fonts.
--Menner (talk) 13:38, 24 April 2016 (UTC)
How do you figure? Just now I've set the 'DejaVu Serif' face with 'Semi-Condensed' style on some elements I have added to somebody else's SVG. The SVG contains font-family:'DejaVu Serif';-inkscape-font-specification:'DejaVu Serif, Semi-Condensed';. And the SVG created from scratch with that same face+style contains the same fragment.
Is this info helping? Yury Tarasievich (talk) 13:56, 24 April 2016 (UTC)
I'm not sure whats the issue. Adding "Condensed" to a font name only works inside Inkscape. Making it "Semi-Condensed" using Shift+Cntrl+T dialog will work with librsvg, too. -- Menner (talk) 21:01, 24 April 2016 (UTC)
For information curved text on a map is possible with Inkscape by converting the text to a path. The steps are (1) draw a curved path. (2) type in the text. (3) From the Text menu select Put on Path. (4) From the Object menu select Group. (5) From the Path menu select Object to Path. The curved text will render when the map is uploaded. The only hitch is the curved path needs to be made invisible after step (3). This can be done either of two ways; by reducing the line width to zero pixels; or changing the line colour to the background colour. Summerdrought (talk) 04:17, 27 April 2016 (UTC)
Thank you. My upload contained the curved text prepared almost like that (with no grouping). It wasn't showing in viewer, though. Yury Tarasievich (talk) 10:45, 2 May 2016 (UTC)

File:לוח 2 בטור אוח תכח.pdf

Can someone fix this file? -- Geagea (talk) 22:14, 8 May 2016 (UTC)

GNU + Freedo Logo.svg not rendering correctly

For some reason, File:GNU + Freedo Logo.svg is not rendering as it should. Does anyone know why? ~nmaia [[mia diskuto]] 15:26, 29 May 2016 (UTC)

@Coadde: you are the author, right? ~nmaia [[mia diskuto]] 15:28, 29 May 2016 (UTC)
It's caused by the Gaussian blur filter that is applied to the black strokes. If the blurred size is below 1px then the whole object is not rendered anymore. It's a known bug in our SVG renderer en:libRSVG and it is fixed upstream. Until we have an updated version on Wikimedia Servers your only option is to remove the blurring. --Patrick87 (talk) 16:50, 29 May 2016 (UTC)
Thanks! I'll just wait then. ~nmaia [[mia diskuto]] 17:35, 29 May 2016 (UTC)