DescriptionUsing the device scale factor for glyph positioning
Patch for initial discussion only. This seems to work correctly and have
the same effect as the patch for https://bugs.webkit.org/show_bug.cgi?id=94028 . The master bug is http://code.google.com/p/chromium/issues/detail?id=138101 .
behdad@ suggested that the changes in SkFontHost_FreeType::SkFontHost_FreeType() would work provided that we had access to the device scale factor. However, this constructor gets called on both the layout and rendering paths, and we only want to use the scale factor for the rendering path (otherwise the scale factor should be 1). Based on tracing the two code paths, I believe this patch demonstrates that the approach will work.
Note that the changes in https://codereview.appspot.com/6493048 should also be included in this CL (for some reason my src/ and include/ directories were in different repos so I had to upload these as separate CLs).
BUG=
Patch Set 1 #
Total comments: 1
MessagesTotal messages: 9
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||