PuffinPlot issue tracker

Bug: a88/c79

ID : c79cd634-e6f1-4eb7-b048-24adebaf3311
Short name : a88/c79
Status : fixed
Severity : minor
Assigned :
Reporter : Pontus Lurcock <pont@talvi.net>
Creator : Pontus Lurcock <pont@talvi.net>
Created : Tue, 08 May 2012 18:39:21 +0000
Target : 1.01
Summary : Try to make all text editable in SVG exports [222]

Comment: --------- Comment ---------
ID: 8f7cf2b8-c724-4acb-9a85-3cdebb3dfd5a
Short name: a88/c79/8f7
From: Pontus Lurcock <pont@talvi.net>
Date: Tue, 08 May 2012 18:39:21 +0000

Exported SVG files (both Batik and FreeHEP) have some text
(the data table and title) as text, and the rest as glyph shapes.
Both for editability and file size, it would be nice to have all
text as text. The fact that some of it works OK should make the
problem easier to track down.

Comment: --------- Comment ---------
ID: c194eacb-15fa-4759-a0a7-8db8e1a87782
Short name: a88/c79/c19
From: Pontus Lurcock <pont@talvi.net>
Date: Thu, 10 May 2012 12:52:54 +0000

It seems that TextLayout is the culprit: it uses a GlyphVector
to display the text. I think I can get round this by using 
Graphics2D.drawString(AttributedCharacterIterator).

Comment: --------- Comment ---------
ID: 1fd9e0b0-879b-40bd-9dd0-29d5f4724fe9
Short name: a88/c79/1fd
From: Pontus Lurcock <pont@talvi.net>
Date: Thu, 10 May 2012 13:56:46 +0000

Fixed by replacing usages of TextLayout.draw with
Graphics2D.drawString(AttributedCharacterIterator), as
suggested in comment.