PDA

View Full Version : [ubuntu] 18.04LTS SVG Rendering not finding Times



bugbear6502
May 20th, 2019, 02:03 PM
I have a trivial SVG file, generated by the wonderful Graphviz.

The only item of interest in it is some text:


<text text-anchor="start" x="8" y="-14.3" font-family="Times,serif" font-size="14.00" fill="#000000">Some Fairly Random Text</text>

Remarkably, both viewnior and Inkscape fail to use Times New Roman (or even Nimbus) when displaying this.

I am clearly missing something important. If I explicitly set the font to Times within Inkscape, it looks correct. So Inkscape CAN use Times, it just doesn't choose to for this file.

Any help in diagnosing or fixing this would be most gratefully received.

BugBear

283288

bugbear6502
May 21st, 2019, 09:06 AM
According to "WhatTheFont" (https://www.myfonts.com/WhatTheFont/) Inkscape is defaulting to "Prima Serif Std Roman" by Bitstream.

Edit; which I don't appear to have installed. Further checking (and the use of strace...) shows it may well be DejaVu Serif.

https://fontlibrary.org/en/font/dejavu-serif

BugBear

bugbear6502
May 21st, 2019, 09:52 AM
The glitch is system wide - viewing the SVG in Firefox gives the same result (I've updated thread title)

BugBear

bugbear6502
May 21st, 2019, 10:03 AM
It's some kind of generic/equivalent config that's missing.

If I change the font-family to be explicitly Times New Roman


<text text-anchor="start" x="8" y="-14.3" font-family="Times New Roman,Times,serif" font-size="14.00" fill="#000000">abcedfgehijk</text>

It works. Further testing:

"Helvetica" doesn't work, "Arial" does.

(hah - someone else in the office is still on 16.04LTS, and the original "faulty" SVG renders just fine)

BugBear