#1 Re: GDI+ » ConvertToEmfPlus and underlined text » 2014-02-03 10:36:20

Hi,

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

EvRenesse

#2 Re: GDI+ » ConvertToEmfPlus and underlined text » 2014-01-24 21:02:28

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

#3 Re: GDI+ » ConvertToEmfPlus and underlined text » 2014-01-24 16:54:58

Hi,

thanks for your response.

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

EvRenesse

#4 GDI+ » ConvertToEmfPlus and underlined text » 2014-01-24 13:45:49

EvRenesse
Replies: 4

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

Board footer

Powered by FluxBB