achuanle / umlet

Automatically exported from code.google.com/p/umlet
0 stars 0 forks source link

PDF export font formatting: Italics and dashed borders #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Draw a class with dashed border bt=. and one with normal border
2. Use *Bold* and /Italics/
3. Use PDF Export and PNG Export

What is the expected output? What do you see instead?
Expected: is what you see on PNG Export which is fine
Instead: Italics do not work and bold looks only good with normal border, see 
attached screenshot of Mac OS Preview of PDF pdf-export-pdf-detail.png

What version of the product are you using? On what operating system?
Umlet 12.0 in Eclipse Indigo Service Release 2, Mac Os 10.8.3 

Please provide any additional information below.

Original issue reported on code.google.com by m...@gerritgriebel.de on 10 May 2013 at 9:21

Attachments:

GoogleCodeExporter commented 9 years ago
Also: Thickness of horizontal dashed line seems to differ from vertical dashed 
line 

Original comment by m...@gerritgriebel.de on 10 May 2013 at 9:23

GoogleCodeExporter commented 9 years ago
I've fixed the line thickness error in r534 for new grid elements (the new 
palette). Unfortunately there is no easy way to fix it for the other elements, 
because Swing is able to draw on coordinates (0,0), but the pdf (and svg) 
export libraries cut a part of the line.

See the attached pdf export (left side are new classes which are fixed, right 
side are old ones which are not fixed)

Unfortunately I cannot reproduce the other issue with bold + italic. I have 
updated the pdf export library for the next build, so hopefully this issue will 
disappear too. Other than that I could only guess that the MacOS Java version 
has some issues, because we use default Java classes for formatted texts 
(java.text.AttributedString)

Original comment by AFDiaX on 22 Jun 2013 at 12:12

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by AFDiaX on 24 Aug 2013 at 7:27

GoogleCodeExporter commented 9 years ago
also fixed for OldGridElements in r769 

Original comment by AFDiaX on 27 Aug 2013 at 7:10