aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/platform
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-089-834/+0
|
* Add support for borders on inline elements.Glenn Watson2014-09-031-4/+3
| | | | | | | Fix ahem reftests on mac, by disabling text AA in reftest mode. Also fix precision issues in font metrics to correct height and baseline calculations.
* Change line-height to be read from the font itself, rather thanGlenn Watson2014-08-122-7/+11
| | | | a hard-coded estimate.
* Upgrade Rust.Jack Moffitt2014-08-082-7/+7
|
* Unify the android + linux font code folders. Fixes #3028.Glenn Watson2014-08-089-530/+14
|
* Merge pull request #2791 from glennw/web-fontsglennw2014-08-064-19/+52
|\ | | | | Add basic support for web fonts. Synchronous loading only
| * Don't rely on font hint for format detection. Handle parsing commaGlenn Watson2014-07-242-11/+18
| | | | | | | | | | separated format hints. Fix oversight in mac code dealing with creating web fonts from memory.
| * Add basic support for web fonts. Synchronous loading onlyGlenn Watson2014-07-243-11/+37
| | | | | | | | | | | | for now, and only deals with TTF format fonts. For an example, try loading http://icons.marekventur.de
* | Build fix for android font that was missed during rust upgrade.Glenn Watson2014-08-051-2/+2
| |
* | Upgrade Rust.Jack Moffitt2014-08-028-121/+121
|/
* Implement kerning support for linux/android. Improves some wikipedia issues ↵Glenn Watson2014-07-243-6/+32
| | | | (#2554).
* Address review comments.Glenn Watson2014-07-082-50/+46
|
* Next stage of refactoring font system. This commit introducesGlenn Watson2014-07-0713-206/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the font cache task, and adapts client code to use it. It also cleans up some existing code paths. - Fonts are only read once from disk while in use (they are discarded if the reference count reaches zero, however). This saves memory and prevents unnecessary reading from disk. - It will be easier to add web font support, as all fonts are created and managed in a single place and the entire pipeline ensures that only one in-memory copy of font data is required. An overview of how the pieces fit together: FontTemplate - A structure containing everything that is required to create (and select) font handles. This structure is shared among all matching font handles (via Arc). FontTemplateData - A platform specific structure that contains the actual font data inside a template (this is a byte array on Linux/Android, CTFont on Mac). FontHandle - An opaque, platform specific handle to a font instance. Each FontHandle contains an Arc<> reference to the FontTemplate it was created from. FontCache - This is a separate task, that is responsible for loading and caching FontTemplate structures. There is one FontCache per constellation. It is only ever accessed via the FontContext described below. FontContext - This is the public interface to the FontCache and is used by the layout and render code to create font handles. These must *not* be shared between threads. There is typically one FontContext per thread/task.
* Mark some unused fields.Ms2ger2014-07-041-1/+1
|
* First part of font refactoring. These changes simplify a few thingsGlenn Watson2014-07-038-444/+185
| | | | | | | | | | | | | | | | | | | | | but don't do much on their own, they just make it easier to implement the work to come (web fonts, performance improvments in terms of font loading and memory usage). - Font identifier on Linux/Android is now the font file path. This is a temporary measure, but simplifies things a lot for now. - Remove FontListHandleMethods trait in favour of free functions. - FontList::refresh() has no knowledge of FontFamily etc. Instead it takes a closure that the caller provides. - FontList::load_variations_for_family no longer creates the font handle. Instead it takes a closure and provides the name of the font identifier for the variations it finds. - Remove path_from_identifier() - it's no longer required. - create_font_from_identifier() takes an Option<Style>, allowing it to be used to create fonts for family matching purposes where the font size is not important. Tested on Linux + Mac. Builds on Android but not able to confirm it's working correctly.
* Font refactoring - remove unstyled method, update android freetypeGlenn Watson2014-07-026-63/+72
| | | | init to use allocator hooks.
* Upgrade to latest Rust.Manish Goregaokar2014-06-273-3/+3
|
* Merge pull request #2713 from glennw/font-cleanup-2Lars Bergstrom2014-06-253-33/+1
|\ | | | | Remove unused code path - simplifies other refactoring.
| * Remove unused code path - simplifies other refactoring.Glenn Watson2014-06-253-33/+1
| |
* | Linux freetype context uses custom allocator callbacks to enable memory ↵Glenn Watson2014-06-251-3/+46
|/ | | | profiling.
* Add Fira Sans and DejaVu Sans to the last-resort font families.Nicolas Silva2014-06-221-1/+5
|
* Update submodules and ~str/String, to_owned/to_string, & cast/mem to get ↵Luqman Aden2014-06-103-14/+14
| | | | android building.
* Fix some deprecated warnings for to_owned()Manish Goregaokar2014-06-082-2/+2
|
* Upgrade Rust.Jack Moffitt2014-06-056-27/+27
|
* Rename GlyphIndex->GlyphIdBrendan Zabarauskas2014-05-123-12/+12
| | | | This will allow us to use the GlyphIndex identifier to refer to glyph indexes into text runs in the future.
* Return Vec from get_last_resort_font_families.Ms2ger2014-05-063-6/+6
|
* Use Vec for Font::new_from_buffer.Ms2ger2014-05-053-8/+8
|
* Replace most ~"string"s with "string".to_owned().Ms2ger2014-05-043-3/+3
|
* auto merge of #2302 : Manishearth/servo/attr, r=Ms2gerbors-servo2014-05-031-1/+1
|\
| * Use new attribute syntaxManish Goregaokar2014-05-031-1/+1
| |
* | Stop passing owned strings to fail!().Ms2ger2014-05-032-2/+2
|/ | | | The ~"string" expression is being removed in upstream rust.
* This batch of changes upgrades Servo to work with the Rust upgrade as ofLars Bergstrom2014-04-277-18/+18
| | | | | | April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries.
* Fix some private type in public signature warnings.Josh Matthews2014-04-162-1/+3
|
* fix android for rust updateaydin.kim2014-04-102-4/+4
|
* Remove trailing whitespace.Ms2ger2014-04-071-1/+1
|
* Upgrade rust.Ms2ger2014-04-041-3/+3
|
* Rust upgrade for new master rebaseLars Bergstrom2014-03-182-2/+2
|
* Rust upgrade for androidLars Bergstrom2014-03-183-6/+6
|
* Rust upgradesLars Bergstrom2014-03-187-18/+18
|
* layout: Implement parallel reflow for the bubble-widths andPatrick Walton2014-01-221-3/+3
| | | | | | | | | | | | assign-heights phases. This uses the new work-stealing deque. By default, 3/4 of a thread per logical CPU is used. This can be tuned with the `-y` flag. I measured a 65% reflow speedup on `perf-rainbow.html` and a 247% reflow speedup on `http://en.wikipedia.org/wiki/South_China_Sea` on a 4-core HyperThreaded Core i7. However, numbers were fairly volatile, especially for the latter.
* Upgrade to latest Rust.Jack Moffitt2014-01-128-115/+78
|
* auto merge of #1455 : SimonSapin/servo/font-style, r=kmcallisterbors-servo2014-01-032-34/+42
|\ | | | | | | | | * Using .connect(", ") just to use .split(",") later is silly. Keep it a vector. * The 'font-style' property can not be both italic and oblique. Use an enum instead of two booleans.
| * Refactor FontStyle and really fix #193Simon Sapin2014-01-032-34/+42
| | | | | | | | | | | | | | * Using .connect(", ") just to use .split(",") later is silly. Keep it a vector. * The 'font-style' property can not be both italic and oblique. Use an enum instead of two booleans.
* | auto merge of #1445 : webconv/servo/PR_android, r=kmcallisterbors-servo2014-01-033-55/+48
|\ \ | |/ |/| | | | | | | | | 1. We've aimed to android 4.3 Jellybean devices like Galaxy 10.1 and Galaxy Nexus, etc. I think it could still support android 4.1 2. Needs android ndk r9(not r9b) and latest android sdk 3. Needs some device list update on sdk for apk build. 4. Currently we can not build android port on mac because compiler build problem like https://github.com/mozilla/rust/pull/10921. Hopefully I expect that it could be resolved at next rust upgrade.
| * update gfx font stuffs for androidaydin.kim2013-12-313-55/+48
| |
* | Support oblique(font-style) for linux and androidDeokjin Kim2014-01-032-4/+26
| | | | | | | | Add oblique style to pattern to find proper font.
* | Fix font-weight properyDeokjin Kim2014-01-033-43/+41
|/ | | | | Currently, hard coded value(FontWeight300) is used for font-weight property. To display it properly, use parsed CSS font-weight value.
* Build with make instead of rustpkg.Jack Moffitt2013-12-261-3/+3
|
* Remove unused import.Tetsuharu OHZEKI2013-12-131-1/+0
|
* makes linux/Arc<FontContextHandle> Rc<FontContextHandle>patrick kim2013-12-112-6/+6
|