Specifying unicode symbols for subscript zero in SVG files

Post questions on how to use or achieve an effect in Inkscape.
pabristow
Posts: 2
Joined: Sat Feb 16, 2013 1:40 am

Specifying unicode symbols for subscript zero in SVG files

Postby pabristow » Sat Feb 16, 2013 2:04 am

I can sucessfully insert and display Uicode characeter 2080 to display a subscript zero

and this inserts this into the .svg file

<tspan
sodipodi:role="line"
id="tspan2995"
x="267"
y="360.36218">Subscript zero â‚€</tspan></text>

and this displays OK on all browsers.

But I want to be able to do this for C++ programs that write svg files.

This works for greek and other math characters, for example this string

&#x3B6; &#x00B1; &#x2080; &#x2081; &#x2082;&#x2083; in a string like this

<text x="350" y="40" text-anchor="middle" font-size="20" font-family="Verdana">Title with Unicode <sup>-&#945; </sup> &#x3A9; &#x3A6; &#x221A; &#x221E; &#x3B6; &#x00B1; &#x2080; &#x2081; &#x2082;&#x2083;</text>

and this displays as expected using Opera, IE9, Firefox, Chrom

But Inkscape shows the square 'not-printable' symbols for the subscript digits :-(

Is this a bug or a feature that I can work around in some other way?

Paul

pabristow
Posts: 2
Joined: Sat Feb 16, 2013 1:40 am

Re: Specifying unicode symbols for subscript zero in SVG fil

Postby pabristow » Wed Feb 20, 2013 2:45 am

The subscript digits appear to be missing from the Verdana font (but are present in other link Times Roman, Arial, Lucida console).

Is this a bug or a feature? Should I submit a bug report?

Apart from trial and error, is there a way I can find out which Unicode symbols are implemented for each font?

(The need for these comes from the poor or non-implementation of text shifting to allow display of units like m sec-1 and chemcial formulae like H2O by other browsers - Inkscape is best for this).

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Specifying unicode symbols for subscript zero in SVG fil

Postby Lazur » Tue Jul 02, 2013 7:12 am

Sorry for the late reply but maybe someone who is interested in such thing,
in windows you can open the character table from start menu>accessories>system tools>character table, where you can see all characters of every font in an organised way.


Return to “Help with using Inkscape”