View Single Post
Old 08-12-2014, 10:04 AM   #17
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by zonker View Post
I finally solved.

In your example, font-size attributes are inside style attribute:
Code:
<text style="text-anchor: middle; font-size: 20px; font-family: Futura" textLength="180" x="150" y="65">Some Author</text>
But in "3.6.10 Image Guideline #10: Displaying Text Correctly within SVG" of "Amazon Kindle Publishing Guidelines" I found that:


So I guess the right working code for your example should be:
Code:
<text style="text-anchor: middle; font-family: Futura" textLength="180" font-size="20" x="150" y="65">Some Author</text>
NOTE: if I write font-size=20 like in the example instead of font-size="20" it doesn't work. Anyway font-size must be without "px".

Uploading to kdp characters appear finally with the right size in the online preview.
Congratulations, good work!! And a final aclaration; when you omit a unit in "font-size" in that context (text inside a svg image) -for default- the unit is "pixel" (as when you use "width" and "height" inside a <img> tag; you write -for example- width="180" without any unit but that means pixels)
RbnJrg is offline   Reply With Quote