ASF Bugzilla – Attachment 29656 Details for
Bug 54210
When saving PPT to PNG, some text is rendered backwards
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Text patch
patch.txt (text/plain), 1.43 KB, created by
vincent.kirsch
on 2012-11-29 12:22:25 UTC
(
hide
)
Description:
Text patch
Filename:
MIME Type:
Creator:
vincent.kirsch
Created:
2012-11-29 12:22:25 UTC
Size:
1.43 KB
patch
obsolete
>Index: src/scratchpad/src/org/apache/poi/hslf/model/TextPainter.java >=================================================================== >--- src/scratchpad/src/org/apache/poi/hslf/model/TextPainter.java (revision 1415116) >+++ src/scratchpad/src/org/apache/poi/hslf/model/TextPainter.java (working copy) >@@ -120,6 +120,30 @@ > break; > } > >+ //flip vertical >+ if(_shape.getFlipVertical()){ >+ graphics.translate(anchor.getX(), anchor.getY() + anchor.getHeight()); >+ graphics.scale(1, -1); >+ graphics.translate(-anchor.getX(), -anchor.getY()); >+ } >+ //flip horizontal >+ if(_shape.getFlipHorizontal()){ >+ graphics.translate(anchor.getX() + anchor.getWidth(), anchor.getY()); >+ graphics.scale(-1, 1); >+ graphics.translate(-anchor.getX() , -anchor.getY()); >+ } >+ //rotate transform >+ double angle = _shape.getRotation(); >+ >+ if(angle != 0){ >+ double centerX = anchor.getX() + anchor.getWidth()/2; >+ double centerY = anchor.getY() + anchor.getHeight()/2; >+ >+ graphics.translate(centerX, centerY); >+ graphics.rotate(Math.toRadians(angle)); >+ graphics.translate(-centerX, -centerY); >+ } >+ > //finally draw the text fragments > for (int i = 0; i < elem.length; i++) { > y0 += elem[i].ascent;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54210
:
29643
|
29654
| 29656 |
31312