Commit graph

3647 commits

Author SHA1 Message Date
Patrick Walton
c31bd43570 css, gfx, sub: Eliminate many copies 2012-11-18 22:01:40 -08:00
Patrick Walton
0c72f6ded8 gfx, html, layout: Unbreak images by removing a bad copy 2012-11-18 21:14:54 -08:00
Patrick Walton
61f558dffc css, dom, text: Stop copying so much. Also stop asserting. 2012-11-18 19:12:34 -08:00
Patrick Walton
230ac2dd17 css, sub: Don't copy so much 2012-11-18 18:59:34 -08:00
Brian J. Burg
2a1e97c80f Delete old range, s/MutableRange/Range/g; 2012-11-18 18:57:46 -08:00
Brian J. Burg
da17edee92 Move away from using non-freezable Range. 2012-11-18 18:49:46 -08:00
Brian J. Burg
a706a57f32 Move Range::relation_to_range 2012-11-18 18:31:01 -08:00
Brian J. Burg
0562871cc7 Make MutableRange freezable. 2012-11-18 18:25:02 -08:00
Brian J. Burg
25f019b9df Add a simple multi-byte character unicode test. 2012-11-18 17:00:18 -08:00
Brian J. Burg
451f99c5b1 Handle multi-byte characters in the hb output-interpretation code. (the multi-byte glyph storage code doesn't quite work yet, though.) 2012-11-18 16:59:46 -08:00
Brian J. Burg
fa8839250d Make the ligatures test case easier to see. 2012-11-18 15:31:32 -08:00
Brian J. Burg
cc1a0e5d6a Refactor the harfbuzz output interpretation function to be easier to follow. Remove old commented out version. 2012-11-18 15:29:17 -08:00
Brian J. Burg
f72548d8fa Split apart tests for ligatures and combining character sequences. 2012-11-18 12:48:28 -08:00
Brian J. Burg
1c04624312 Properly handle harfbuzz output for some simple ligature cases. 2012-11-18 12:48:23 -08:00
Patrick Walton
b1ab49d842 submodules: Update rust-css and rust-netsurfcss 2012-11-18 11:57:16 -08:00
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