aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/text.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-327/+0
|
* Implement sideways text.Simon Sapin2014-08-291-7/+33
|
* Remove some unneeded pubsMatt Brubeck2014-08-271-6/+6
|
* Add support for backgrounds on inline elements. Fix fixup() by removing it.Glenn Watson2014-08-271-1/+1
| | | | | | | | | The code that managed ranges was buggy - failing on edge cases such as a span within a span. I have refactored the code so that the context information for inline formatting can optionally be stored within a fragment. This seems cleaner to me, and fixes the bugs encountered when making these changes by removing the need for the fixup() functionality (and ranges).
* Remove obsolete TODO commentsMatt Brubeck2014-08-261-5/+0
|
* Change line-height to be read from the font itself, rather thanGlenn Watson2014-08-121-2/+2
| | | | a hard-coded estimate.
* Upgrade Rust.Jack Moffitt2014-08-081-8/+8
|
* Change calculate_line_height to use font-size from style.Glenn Watson2014-07-221-3/+2
|
* Remove unused field before other upcoming changes.Glenn Watson2014-07-211-4/+2
|
* Convert layout code to use logical directions.Simon Sapin2014-07-181-5/+11
|
* Next stage of refactoring font system. This commit introducesGlenn Watson2014-07-071-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Split layout code into a separate crate.Josh Matthews2014-06-281-0/+303