Bug 98961 - text-combine doesn’t use third- and quarter-width variants when used with @font-face
Summary: text-combine doesn’t use third- and quarter-width variants when used with @fo...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-10-10 15:47 PDT by mitz
Modified: 2012-10-10 20:21 PDT (History)
5 users (show)

See Also:


Attachments
Patch (6.72 KB, patch)
2012-10-10 16:13 PDT, mitz
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2012-10-10 15:47:55 PDT
<rdar://problem/12472460>

When used with a @font-face font, text-combine fails to measure text using the third- and quarter-width variants, and renders with a different font altogether. Patch forthcoming.
Comment 1 mitz 2012-10-10 16:13:20 PDT
Created attachment 168085 [details]
Patch
Comment 2 WebKit Review Bot 2012-10-10 16:18:00 PDT
Attachment 168085 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
Source/WebCore/platform/graphics/FontWidthVariant.h:41:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Tim Horton 2012-10-10 19:09:03 PDT
Comment on attachment 168085 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=168085&action=review

> LayoutTests/fast/text/text-combine-with-font-face.html:4
> +        src: local(HiraMinProN-W3);

Is this one of the fonts we ship in the repo?
Comment 4 mitz 2012-10-10 19:20:50 PDT
(In reply to comment #3)
> (From update of attachment 168085 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=168085&action=review
> 
> > LayoutTests/fast/text/text-combine-with-font-face.html:4
> > +        src: local(HiraMinProN-W3);
> 
> Is this one of the fonts we ship in the repo?

No. local() means that a locally-installed font with that name should be used. OS X comes with that font.

Thanks for the review!
Comment 5 mitz 2012-10-10 20:21:06 PDT
Fixed in <http://trac.webkit.org/r131005>.