Bug 129147

Summary: EMF+ vertical string alignment not implemented
Product: LibreOffice Reporter: Chris Sherlock <chris.sherlock79>
Component: graphics stackAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: chris.sherlock79, gang65, xiscofauli
Priority: medium Keywords: filter:emf
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 55058, 103859, 129138    
Attachments: EMF+ Horizontal Text Aligment example
EMF+ Horizontal Text Aligment example exported to PNG
EMF+ Vertical alignment text
EMF+ Vertical alignment text exported to PNG

Description Chris Sherlock 2019-12-02 19:08:29 UTC
Description:
We have not implemented vertical string alignment when processing EmfPlusDrawString.



Steps to Reproduce:
Open a document with an EMF+ file that draws text where the text is aligned to the far bottom, or is aligned to be centered vertically. 

Actual Results:
The line is not aligned vertically correctly. 

Expected Results:
Show align the text either vertically to the far bottom, or vertically centered.


Reproducible: Always


User Profile Reset: No



Additional Info:
You will see this if you run in debug mode - you will get a warning:

EMF+    TODO EMFPStringFormat:lineAlign

To fix this, we will need to implement vertical alignment in drawinglayer/source/tools/emfphelperdata.cxx in EmfPlusHelperData::processEmfPlusData().
Comment 1 Xisco Faulí 2019-12-11 14:08:11 UTC
Hello Chris,
Would it be possible to attach a sample EMF+ file ?
Comment 2 Xisco Faulí 2020-01-20 18:57:13 UTC
(In reply to Xisco Faulí from comment #1)
> Hello Chris,
> Would it be possible to attach a sample EMF+ file ?

Setting to NEEDINFO meanwhile
Comment 3 Bartosz 2020-09-04 11:15:03 UTC
Created attachment 165140 [details]
EMF+ Horizontal Text Aligment example
Comment 4 Bartosz 2020-09-04 11:16:50 UTC
Created attachment 165141 [details]
EMF+ Horizontal Text Aligment example exported to PNG
Comment 5 Bartosz 2020-09-04 11:51:43 UTC
Created attachment 165144 [details]
EMF+ Vertical alignment text
Comment 6 Bartosz 2020-09-04 11:52:07 UTC
Created attachment 165145 [details]
EMF+ Vertical alignment text exported to PNG