Commit graph

5232 commits

Author SHA1 Message Date
Patrick Walton
5317939b64 Implement CSS text-align 2012-11-16 19:15:11 -08:00
Patrick Walton
fbd3bf0c8e Add node_id and node_has_id 2012-11-16 19:02:38 -08:00
Patrick Walton
fa7f985d08 Update submodules and set default text size to 16 2012-11-16 18:49:45 -08:00
Brian Anderson
43ebaa6006 Update rust-netsurfcss, rust-css 2012-11-16 18:30:29 -08:00
Patrick Walton
bb94e7cec5 Update rust-css 2012-11-16 18:08:20 -08:00
Patrick Walton
4539a0fa68 Implement font-size and font-style 2012-11-16 18:04:03 -08:00
Brian Anderson
73078bd2a0 Update rust-netsurfcss, rust-css 2012-11-16 17:42:07 -08:00
Brian J. Burg
31313d16b1 Implement text-align of left, center, right. 2012-11-16 16:27:20 -08:00
Patrick Walton
dba9905bbc layout: Hook up CSS to font rendering 2012-11-16 16:13:52 -08:00
Brian J. Burg
7fbba0b441 Switch to use CGFont binding. Give out the same CGFont for each new ScaledFont. Closes #152. Closes #184. 2012-11-16 15:21:34 -08:00
Patrick Walton
786746d3c6 gfx: Implement generic font names per CSS2 15.3.1 2012-11-16 15:16:19 -08:00
Brian J. Burg
dd1dcf33b2 Implement AbstractCFType::type_id(). Switch to use CFTypeRef::downcast(). 2012-11-16 14:31:18 -08:00
Brian J. Burg
9f91f2814e Fix some submodule test breakage. 2012-11-16 12:18:57 -08:00
Brian J. Burg
51461cd104 Rewrite the Core Foundation wrapper system. 2012-11-16 12:00:19 -08:00
Brian J. Burg
d3debc6bf8 add test case with a few ligatures and combining character sequences. 2012-11-16 09:43:09 -08:00
Brian J. Burg
c29855f66a Update rust version. 2012-11-16 08:54:44 -08:00
Patrick Walton
54a71a7d0c gfx: Allow tile size to be set on the command line 2012-11-15 20:47:27 -08:00
Patrick Walton
4fd486970b text: Don't crash on kerning/ligatures 2012-11-15 20:47:13 -08:00
Patrick Walton
6d9193233e Update rust-core-foundation to fix crash 2012-11-15 20:46:52 -08:00
Patrick Walton
ca217b4f75 css, gfx, layout, submodules: Update for compiler bugfixes 2012-11-15 17:34:18 -08:00
Brian J. Burg
80aa0e904d Add some debugging for mulitple glyph cases in shaper and glyph storage. 2012-11-15 09:46:59 -08:00
Brian J. Burg
b4943a6298 Clean up some unused debug code in gfx/font.rs. 2012-11-15 09:45:39 -08:00
Brian J. Burg
a11874c635 Update rust-core-foundation to fix double-release crash. 2012-11-15 09:23:14 -08:00
Brian J. Burg
c74abcaa5c Add some RAII and black magic to let harfbuzz determine font table blob lifetimes. 2012-11-14 17:10:57 -08:00
Brian J. Burg
b14505e44d Load font family face variations on-demand, rather than all at startup. This breaks the linux build temporarily. Provides the Mac implementation for Issue #187. 2012-11-14 14:43:59 -08:00
Brian J. Burg
fe29edb5f6 Fix crash in debug logging of FontList. Closes #204. 2012-11-14 09:56:49 -08:00
Brian J. Burg
77a5d8b107 Fix the linux build by stubbing out FreeType handles that haven't been implemented yet. Add some glue to create ScaledFonts for Cairo backend on linux. Closes #207. 2012-11-13 18:34:27 -08:00
Brian J. Burg
8d5759d8a6 Update rust-azure to fix the previous fix, which broke the Mac build (woops) 2012-11-13 14:53:32 -08:00
Brian J. Burg
ee0a3fe937 Update rust-azure for linux build breaks. Closes #170. Closes #207. 2012-11-13 14:35:29 -08:00
Brian J. Burg
0d135a4fa5 Finish implementing first cut at font matching. Closes #174. 2012-11-12 19:24:35 -08:00
Brian J. Burg
ebb9392587 Bump rust version. 2012-11-12 19:23:46 -08:00
Brian J. Burg
042a33e281 Add clean target for servo gfx; Clean servo_gfx when running make clean-servo. 2012-11-12 19:21:15 -08:00
Brian J. Burg
23c35c4c88 Don't pass around a managed font buffer since it's not shared, and not used by font table code at all. Fixes #176. 2012-11-12 15:24:25 -08:00
Brian J. Burg
ad353c3161 Update some TODO comments and other cleanup. 2012-11-12 14:57:39 -08:00
Brian J. Burg
b62537883a Comment out some spammy Font debug statements. 2012-11-12 14:34:27 -08:00
Brian J. Burg
81f84bce17 Clean up imports after rebasing across submodule mess. 2012-11-12 14:29:46 -08:00
Brian J. Burg
7a3a79dc36 Implement lazy font table loading from FontHandles for CoreText. Tracked by #195. 2012-11-12 14:13:43 -08:00
Brian J. Burg
a34f67d64b Clean up font-related constructor paths to not require a byte buffer;
add FontGroup construction and interaction with TextRun.

Closes #178.
2012-11-12 14:12:32 -08:00
Brian J. Burg
84216f838f Some hacks to make text line breaking a bit faster. 2012-11-12 14:10:59 -08:00
Patrick Walton
7bbff6154c gfx: Rename servo-gfx-2 to servo-gfx 2012-11-12 12:28:20 -08:00
Patrick Walton
463b80090c Remove the servo-gfx submodule 2012-11-12 12:08:38 -08:00
Patrick Walton
5e70e3b153 servo: Add missing util.rs 2012-11-11 21:03:47 -08:00
Patrick Walton
a38887194f submodules: Split out GFX and all its dependencies into a servo-gfx submodule 2012-11-11 19:42:44 -08:00
Patrick Walton
6d4cb4319d layout: Use the style of the nearest common ancestor node for background colors 2012-11-11 17:12:30 -08:00
Patrick Walton
8c3b8fe3d4 css, submodules: Implement named-ancestor-node 2012-11-11 14:31:49 -08:00
Patrick Walton
b0f185412d layout, submodules, test: Stop crashing on Acid1 2012-11-11 14:16:01 -08:00
Patrick Walton
64fb0fbe60 dom, gfx, layout, submodules: Implement "color" 2012-11-10 23:44:18 -08:00
Patrick Walton
7917da2f8c html: Handle inline stylesheets. purple.com works now. 2012-11-10 15:15:33 -08:00
Patrick Walton
f249396712 Set number of cores = 1 due to suspected Cairo thread unsafety 2012-11-09 19:23:08 -08:00
Brian J. Burg
0034e2d6be Move FontFamily/FontEntry to font_list.rs; implement strawman family/face matching. 2012-11-09 19:18:11 -08:00