Results 1 to 2 of 2
  1. #1
    Said is offline Member
    Join Date
    Dec 2013
    Posts
    2
    Rep Power
    0

    Question How to Write/Save a Multiple lines of Text to a SVG file

    I am writing to a file coordinates of texts using PathIterator (Java Platform SE 7 ) saved as SVG format i defined the Font attributes using AttributedString (Java Platform SE 7 ) and TextLayout (Java Platform SE 8 ). It is saving to the file and working properly, but it is just writing as a single line of text where is my target is multiple lines of text, i began using LineBreakMeasurer (Java Platform SE 7 ) Class, but some text is removed plus i got single line of text only, where i face the problem that , How to determine the width to get multiple lines of text ? i tried to figure out from this exampleDrawing Multiple Lines of Text (The Java™ Tutorials > 2D Graphics > Working with Text APIs) where is drawing multiple lines of text but i am using getBounds().getWidth() of TextLayout object the code i tried

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,087
    Rep Power
    20

    Default Re: How to Write/Save a Multiple lines of Text to a SVG file

    Closing this duplicate as the other one seems to have more info.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 1
    Last Post: 03-17-2014, 02:03 AM
  2. Replies: 2
    Last Post: 05-03-2013, 02:55 AM
  3. PDFBox multiple text lines and fields
    By igorland in forum New To Java
    Replies: 1
    Last Post: 02-02-2013, 01:21 PM
  4. Writing multiple lines to text file at once
    By Plex in forum New To Java
    Replies: 14
    Last Post: 11-08-2010, 09:17 PM
  5. Deleting multiple lines of text from a file
    By barman in forum New To Java
    Replies: 4
    Last Post: 06-29-2010, 09:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •