The change to SkFontHost_win.cpp is the real thing to review here, the changes to SkPaint ...
12 years, 2 months ago
(2012-10-31 19:29:28 UTC)
#1
The change to SkFontHost_win.cpp is the real thing to review here, the changes
to SkPaint and SkTypeface are just to illustrate the issue with default font
selection.
When serialized, the other font hosts write out the name of the actual font used
by the system. This changes the GDI font host to do the same. Writing out the
name of the actual font used is highly desirable since if we were writing out
text based on glyph ids and end up with a different font, gibberish will result.
https://codereview.appspot.com/6822060/diff/1/include/core/SkTypeface.h
File include/core/SkTypeface.h (right):
https://codereview.appspot.com/6822060/diff/1/include/core/SkTypeface.h#newco...
include/core/SkTypeface.h:194: static SkTypeface* GetDefaultTypeface();
Maybe this should be promoted to visible? This would allow users to set it
explicitly on paint, meaning that it would serialize this typeface in the paint,
instead of having the serialized paint marked as no/default typeface.
Will think about the default typeface issues and possibly try fixing that later. https://codereview.appspot.com/6822060/diff/1/src/ports/SkFontHost_win.cpp File ...
12 years, 2 months ago
(2012-10-31 20:41:01 UTC)
#3
Issue 6822060: GDI fonthost to serialize using correct font name.
(Closed)
Created 12 years, 2 months ago by bungeman
Modified 12 years, 2 months ago
Reviewers: reed1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 6