Issue 124121

Summary: CoreText: Emulate italic for fonts that do not provide italic themselves
Product: General Reporter: hdu <hdu>
Component: codeAssignee: hdu <hdu>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: issues
Version: 4.1.0-dev   
Target Milestone: 4.1.0   
Hardware: Mac   
OS: Mac OS X, all   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on: 123951    
Issue Blocks:    
Attachments:
Description Flags
test-document with Andale Mono that doesn't provide Italic/Oblique styles none

Description hdu@apache.org 2014-01-27 13:50:33 UTC
A couple of fonts don't provide italic typefaces themselves. Slanting their regular version doesn't provide it either but it gives an approximation and it allows to distinguish texts that only differ in their "italic" attribute.
Comment 1 hdu@apache.org 2014-01-27 14:03:21 UTC
On our Unix platforms we have been using the matrix (1, 3/8, 0, 1) for over a decade now for the italic-emulation, so we should do something similar for our CoreText based platforms.
Comment 2 hdu@apache.org 2014-01-28 11:56:11 UTC
Created attachment 82411 [details]
test-document with Andale Mono that doesn't provide Italic/Oblique styles
Comment 3 SVN Robot 2014-01-28 12:41:54 UTC
"hdu" committed SVN revision 1562051 into trunk:
#i124121# emulate oblique/italic for CoreText fonts without such styles
Comment 4 hdu@apache.org 2014-01-28 12:43:05 UTC
Fixed with the commit above.
Comment 5 SVN Robot 2014-01-28 13:31:31 UTC
"hdu" committed SVN revision 1562064 into trunk:
#i124121# prevent oblique/italic emulation with ITALIC_DONTKNOW fonts