Closed
Bug 871453
Opened 11 years ago
Closed 10 years ago
implement support for font-synthesis
Categories
(Core :: Graphics: Text, defect)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jtd, Assigned: jfkthame)
References
Details
(Keywords: dev-doc-complete)
Attachments
(4 files, 2 obsolete files)
(deleted),
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
Followup work from the font-variant bug. Parsing of the 'font-synthesis' property has been implemented but the support for it within gfx code needs to be added.
Assignee | ||
Comment 1•10 years ago
|
||
I'm proposing to steal this bug, as I have some WIP here (prompted by discussion in bug 1023702). I'll post some patches shortly.
Assignee: jdaggett → jfkthame
Blocks: 1023702
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8439855 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8439854 -
Flags: review?(jdaggett)
Assignee | ||
Updated•10 years ago
|
Attachment #8440250 -
Flags: review?(jdaggett)
Assignee | ||
Updated•10 years ago
|
Attachment #8439856 -
Flags: review?(jdaggett)
Assignee | ||
Updated•10 years ago
|
Attachment #8439857 -
Flags: review?(jdaggett)
Assignee | ||
Comment 7•10 years ago
|
||
Tryserver run:
https://tbpl.mozilla.org/?tree=Try&rev=c20e427ac9b3
And after fixing the Windows build failure there (thanks to copy/paste fail):
https://tbpl.mozilla.org/?tree=Try&rev=11dd2fda7f98
Reporter | ||
Comment 8•10 years ago
|
||
Comment on attachment 8439854 [details] [diff] [review]
part 1 - pass the font-synthesis flags down to gfxFontStyle.
:::gfx/thebes/gfxFont.cpp
@@ -141,16 +142,20 @@ struct gfxFontStyle {
+ // Whether synthetic styles are allowed
+ bool syntheticWeight : 1;
+ bool syntheticStyle : 1;
Think these need to be named 'allowSynthetic...' so that it's clear this isn't saying that the weight/style *are* synthetic.
Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8440250 [details] [diff] [review]
part 2 - support font-synthesis options through the platform-font-list backends.
r+ with name change to syntheticWeight/syntheticStyle
Attachment #8440250 -
Flags: review?(jdaggett) → review+
Reporter | ||
Updated•10 years ago
|
Attachment #8439856 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 10•10 years ago
|
||
I agree with the rename to allowSynthetic{Weight,Style}. I'd intended to do this, but forgot to do it before I posted the patches.
Attachment #8442179 -
Flags: review?(jdaggett)
Assignee | ||
Updated•10 years ago
|
Attachment #8439854 -
Attachment is obsolete: true
Attachment #8439854 -
Flags: review?(jdaggett)
Reporter | ||
Updated•10 years ago
|
Attachment #8442179 -
Flags: review?(jdaggett) → review+
Reporter | ||
Comment 11•10 years ago
|
||
Comment on attachment 8439857 [details] [diff] [review]
part 4 - reftests for the font-synthesis property.
Hello cruel world indeed...
Attachment #8439857 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 12•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/167f170048ef
https://hg.mozilla.org/integration/mozilla-inbound/rev/75ad9b0537ea
https://hg.mozilla.org/integration/mozilla-inbound/rev/0211d8de9bac
https://hg.mozilla.org/integration/mozilla-inbound/rev/20ef927d99c6
Target Milestone: --- → mozilla33
Comment 13•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/167f170048ef
https://hg.mozilla.org/mozilla-central/rev/75ad9b0537ea
https://hg.mozilla.org/mozilla-central/rev/0211d8de9bac
https://hg.mozilla.org/mozilla-central/rev/20ef927d99c6
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 14•10 years ago
|
||
Can we mark this approval?/+ for 2.0 uplift?
Comment 15•10 years ago
|
||
(In reply to Stephany Wilkes from comment #14)
> Can we mark this approval?/+ for 2.0 uplift?
Why? Uplifting new features is extremely exceptional; they should generally ride the trains to release.
Flags: needinfo?(swilkes)
Comment 16•10 years ago
|
||
Got it. We're just gunning to get this in to fix RTL issues but it is large, needs bake time, and can ride the trains (per chat with Bhavana in IRC). Thanks David!
Flags: needinfo?(swilkes)
Comment 17•10 years ago
|
||
I don't see any MDN documentation on this feature.
Keywords: dev-doc-needed
Comment 18•10 years ago
|
||
Doc updated
https://developer.mozilla.org/en-US/docs/Web/CSS/font-synthesis
https://developer.mozilla.org/en-US/Firefox/Releases/33
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•