Generic font-family names not recognized in font lister

Bug #379885 reported by Patrick McCarty
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

version: 0.46
platform: Arch Linux
steps to reproduce:
1) Open the attached SVG file in Inkscape
2) Click on the text
3) A warning appears in the console:
** (inkscape:7301): WARNING **: Family name serif does not have an entry in the font lister.

This happens for the other generic font-family names that conform to the SVG specification (sans-serif, cursive, fantasy, and monospace) and for lists of font-family names. A workaround is to use the generic names in the font lister: Serif, Sans, or Monospace.

The rendering of the fonts is accurate, but the warnings are annoying.

Thanks!

Tags: fonts
Revision history for this message
Patrick McCarty (pnorcks) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Ubuntu 9.04, Inkscape 0.46-5ubuntu4.

But with rev. 21543, I have a different warning:
** (inkscape:32465): WARNING **: Ignoring font without family that will crash Pango

Revision history for this message
su_v (suv-lp) wrote :

in parts [1] reproduced with Inkscape 0.47+devel r8930 on OS X 10.5.8:

according to the SVG 1.1 / CSS2 specification, generic font families are:
- sans-serif
- serif
- monospace
- cursive
- fantasy

references:
<http://www.w3.org/TR/SVG11/fonts.html#FontFaceElement>
<http://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#generic-font-families>

1) Inkscape warns [2] about:
- sans-serif
- cursive
- fantasy

2) entries in the font lister:
- Sans (instead of sans-serif)
- Serif (instead of serif)
- Monospace (instead of monospace)

3) For rendering on-canvas all generic font families seem recognized correctly.

[1] attached file was created in Inkscape but externally edited to replace the font-family attributes with generic font family names.
[2] console messages when selecting a text object:
** (inkscape-bin:95559): WARNING **: Family name fantasy does not have an entry in the font lister.
** (inkscape-bin:95559): WARNING **: Family name cursive does not have an entry in the font lister.
** (inkscape-bin:95559): WARNING **: Family name sans-serif does not have an entry in the font lister.

Changed in inkscape:
status: New → Confirmed
tags: added: fonts
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
su_v (suv-lp) wrote :

Related:
- Bug #1088475 “sans-serif text cannot be formatted”
  <https://bugs.launchpad.net/inkscape/+bug/1088475>
- Bug #1002757 “Regressions with new default font 'sans-serif' (r11393)”
  <https://bugs.launchpad.net/inkscape/+bug/1002757>

Revision history for this message
Beluga (buovjaga) wrote :

No repro. Plz re-test.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
Patrick McCarty (pnorcks) wrote :

Retested with the attached SVG on Arch Linux 64-bit, with package inkscape 0.91-19.

The first three text elements use the serif, sans-serif, and monospace font families. These three generic font families now appear in the font lister, and no warnings appear in the terminal. This looks correct.

The last two elements use the cursive and fantasy font families. However, those families do not appear in the lister, and I suspect the names are not recognized. Inkscape appears to render the text with the default sans-serif font instead.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.