#1 2014-01-24 13:45:49

EvRenesse
Member
Registered: 2014-01-24
Posts: 4

ConvertToEmfPlus and underlined text

Hi,

checking your SynGdiPlus I try to convert an EMF file containing underlined text to an EMF+ file, but I don't succeed. I use your converter, not the native converter of GDI+ v1.1.

In the function EnumEMFFunc, record type EMR_EXTTEXTOUTW, regarding underlined text you mention "DrawDriverString doesn't handle those -> GDI+ does not work". If I replace the line

if fontspec.underline or fontSpec.strikeout then begin

by

if true then begin

every word is underlined. So it seems that the fontspec is not recognized correctly. Is this caused by a bug in the code, or are there special conditions to be considered?

BTW: Is your code ready for Win64 compilation?

I use Delphi XE3 for Win32 and Win64.

Thanks for your great project and thanks for your support.

EvRenesse

Offline

#2 2014-01-24 15:20:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,494
Website

Re: ConvertToEmfPlus and underlined text

Ensure you got the latest unstable version from http://synopse.info/fossil/wiki?name=Get+the+source
It has been enhanced for Win64 and latest versions of Delphi.

What is the aLogFont^.lfUnderline value in TGDIPlusEnum.GetCachedFontIndex()?
Is it correct?

Offline

#3 2014-01-24 16:54:58

EvRenesse
Member
Registered: 2014-01-24
Posts: 4

Re: ConvertToEmfPlus and underlined text

Hi,

thanks for your response.

I downloaded the last version 1.18 and checked aLogFont^.lfUnderline: This value is always 0.

EvRenesse

Offline

#4 2014-01-24 21:02:28

EvRenesse
Member
Registered: 2014-01-24
Posts: 4

Re: ConvertToEmfPlus and underlined text

Hi,

in the meantime I made some tests with following results:

1. EMF file created with RTF text, that has been rendered on the MetafileCanvas using RtfLabel component by flocke.vssd.de. This EMF file is converted WITHOUT underlining. EMF file "Test underline RTF.emf".

2. EMF file created with several plain texts, that have been rendered on the MetafileCanvas using GDI TextOut. This EMF file is converted WITH underlining. EMF file "Test underline GDI.emf".

Both EMF test files show the underlining when the files are opened in Windows Paint or in Microsoft Office Picture Manager.

I would like to upload or send the test files to you, so you can look inside the records to search for the differences. How to upload or how to send you the files as an email attachment?

Thanks for your support.

EvRenesse

Offline

#5 2014-02-03 10:36:20

EvRenesse
Member
Registered: 2014-01-24
Posts: 4

Re: ConvertToEmfPlus and underlined text

Hi,

do you want to get my test files? I would appreciate your support.

EvRenesse

Offline

Board footer

Powered by FluxBB