History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FVG-289
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Donszelmann
Reporter: Steffen Greiffenberg
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
FreeHEP Vector Graphics

EMF fonts are not replayed correctly

Created: 03/Jan/07 08:04 AM   Updated: 05/Jan/07 03:52 PM
Component/s: EMF
Affects Version/s: 2.0
Fix Version/s: 2.1

File Attachments: 1. Text File diffs2007-01-03.txt (14 kb)



 Description  « Hide
usage of FonTable inserted

(attachement fixes / improves other things too)

 All   Comments   Change History      Sort Order:
Mark Donszelmann - 03/Jan/07 10:58 AM
You seem to remove the line (and method):

fontName = replaceFonts.getProperty(fontName, fontName);

which would replace Symbol and ZapfDingbats with Arial Unicode, since
the former two fonts are basically ranges in Unicode.

What did you put in return? If I do not replace the fonts,
Symbol will print normal characters.

// for special fonts (Symbol, ZapfDingbats) we choose a standard
            // font and
            // encode using unicode.
            String fontName = font.getName();
            string = FontEncoder.getEncodedString(string, fontName);

fontName = replaceFonts.getProperty(fontName, fontName);

let me know.

Mark


Steffen Greiffenberg - 04/Jan/07 01:01 AM
the replacement has moved to FontUtilities, so the following line does it all:

String windowsFontName = FontUtilities.getWindowsFontName(fontName);

In FontUtilies you'll find:

windowsFonts.setProperty("Symbol", "Arial Unicode MS");
        windowsFonts.setProperty("ZapfDingbats", "Arial Unicode MS");

and a happy new year :)
Steffen

Mark Donszelmann - 04/Jan/07 08:16 AM
ok, I am confused now. Is this bug actually producing the wrong result?

Your patch shows you remove the replacement of the fonts because you
say it is done in FontUtilities. But there there was no change.

I am almost sure I added the font replacement because something was
not working with the current FontUtilities for EMF.

Happy new year too.
Regards
Mark

Steffen Greiffenberg - 04/Jan/07 08:43 AM
FontUtilies are allready fixed since rev. 9329 (FVG-212) ... no other changes are needed.

Regards
Steffen