Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 05:02 AM   #1
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 978
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Font handling in SVGs

I'm about to draw a bunch of line art diagrams for a book intended for my Inkpad Color 3.

Using SVG is the "obvious" choice, however I did a quick test and it doesn't look like PB honours the specified typeface at all. Essentially everything looks like Times.

I'm drawing using Affinity Designer 2; here's a bit of my exported SVG using Times New Roman:

Code:
<text x="448.819px" y="706.625px" style="font-family:'TimesNewRomanPSMT', 'Times New Roman', serif;font-size:50px;">12pt ks@%</text>
And here's a bit of my test using Arial:

Code:
<text x="448.819px" y="708.863px" style="font-family:'ArialMT', 'Arial', sans-serif;font-size:50px;">12pt artscGR</text>
Both look plausible to me, but both get rendered wrong. Times is apparently a little wider than Times New Roman, and I noticed some text getting truncated on the RHS, so I think it is using Times.

Are there any known issues here or tricks I can use? At the end of the day I can always embed a PNG, or get the export to render text as curves, but the downsides of those options are clear.

Edit: I also tried the latest Inkscape, but it was no better.
Edit: I tried embedding the font and using @font-face in CSS - no change. I tried <link>ing the stylesheet into the SVG files - also no change.

Last edited by chrisridd; Yesterday at 07:09 AM. Reason: Tried embedding the fonts
chrisridd is online now   Reply With Quote
Old Today, 02:50 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,734
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
I experimented with this more than 10 years ago and back then it only worked with ADE 4. Unfortunately, not much has changed since then.

Unless you can convince your readers to use ADE 4.x, you'll probably have to convert all SVG text to paths.
Attached Thumbnails
Click image for larger version

Name:	svg_test.png
Views:	1
Size:	33.7 KB
ID:	217244  
Attached Files
File Type: epub cover_svg.epub (72.9 KB, 1 views)
Doitsu is offline   Reply With Quote
Reply

Tags
svg text


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to access note raw SVGs? (10.3 Go) Fitz Frobozz Onyx Boox 1 04-14-2025 09:38 PM
Do SVGs have to be wrapped in DIVs? what ePub 3 03-23-2021 02:40 AM
Marvin not handling not handling #151; pehkay Marvin 3 12-13-2013 07:27 AM
SVGs are centered by KF8, how do you prevent it? FunkeXMix Kindle Formats 3 01-09-2013 07:32 PM
ePub (and KF8) from SVGs heinrich66 ePub 5 05-03-2012 01:56 PM


All times are GMT -4. The time now is 07:55 AM.


MobileRead.com is a privately owned, operated and funded community.