Glenn Watson
8331cfe089
Convert internal font code to store pt size as Au.
2014-10-22 13:49:41 +10:00
Patrick Walton
bb6f557276
layout: Rewrite text and inline fragment handling during flow
...
construction to avoid cloning and moving flows so much.
Besides amounting to a 5%-10% win on a page with a lot of text, this
simplifies and refactors the text layout code.
2014-10-20 22:05:38 -07:00
Patrick Walton
a6fcec468f
layout: Remove FontStyle
in favor of using the font style struct
...
directly, and optimize `get_layout_font_group()` to use a small vector.
Seems to be a 38% layout win on a site I tested with a lot of text.
2014-10-15 22:17:57 -07:00
Josh Matthews
9b20d6e7d2
Add average advance width to the font metrics structure, using the X glyph as a best guess.
2014-10-01 15:03:15 -04:00
Glenn Watson
0dd1b85739
Add support for small-caps font-variant.
...
Ref: 2554.
2014-09-23 14:21:41 +10:00
Keegan McAllister
dc86e83654
Eliminate warnings
2014-09-20 13:00:55 -07:00
Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00