Bug 129147 - EMF+ vertical string alignment not implemented
Summary: EMF+ vertical string alignment not implemented
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:emf
Depends on:
Blocks: emf-testbed EMF-WMF 129138
  Show dependency treegraph
 
Reported: 2019-12-02 19:08 UTC by Chris Sherlock
Modified: 2021-07-05 21:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
EMF+ Horizontal Text Aligment example (8.46 KB, image/emf)
2020-09-04 11:15 UTC, Bartosz
Details
EMF+ Horizontal Text Aligment example exported to PNG (9.20 KB, image/png)
2020-09-04 11:16 UTC, Bartosz
Details
EMF+ Vertical alignment text (6.66 KB, image/emf)
2020-09-04 11:51 UTC, Bartosz
Details
EMF+ Vertical alignment text exported to PNG (4.24 KB, image/png)
2020-09-04 11:52 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
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