[PATCH 2/2] gdi32: Clip font glyphs to fit within text metrics.

Sam Edwards cfsworks at gmail.com
Tue Apr 23 02:45:28 CDT 2013


On 04/22/2013 07:08 PM, Ken Thomases wrote:
> I can't speak to how Windows would render it, but one such font is 
> Zapfino. It's an "exuberant" calligraphic font with lots of 
> flourishes, some of which have strokes extending into the line above 
> or below. http://en.wikipedia.org/wiki/Zapfino 
> https://www.google.com/images?q=zapfino -Ken 

I have never known about this font -- very stylistic indeed. :)

While there are plenty of strokes that go well above the cap height or 
below the baseline, the Win Ascent and Win Descent values (which are 
defined as yMax for all glyphs and -yMin for all glyphs, respectively) 
in the metric tables are valid - none of the glyphs violate these 
limits, so the patch doesn't affect this (correctly-formatted) font.

I loaded it up in Wine's Notepad, both with and without my patch, and 
took screenshots of the output:
http://cfsworks.com/files/images/screenshots/zapfino_wine_unpatched.png
http://cfsworks.com/files/images/screenshots/zapfino_wine_patched.png

I even did a pixel-by-pixel comparison: they render the same!

Sadly I can't make any comparisons to how Windows would handle the font. 
My Win XP VM complains about the ttf being corrupt. Is there a similar 
font that will work on Windows that I could try?

Thanks,
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130423/2fb9926f/attachment.html>


More information about the wine-devel mailing list