Commit Graph

27 Commits

Author SHA1 Message Date
Natalya 86271a87b0 Add iOS support 2017-11-17 21:32:21 +02:00
Patrick Walton 5783a1bb75 Add a binding to CTFontCreatePathForGlyph() 2017-10-19 20:42:59 -07:00
Patrick Walton b30db59c0e Use the foreign-types crate like core-graphics-rs does 2017-10-19 20:42:37 -07:00
Omar Akkila 6847e69397 Fix core-text related warnings (#62)
Fix private-in-public warnings (error E0446)

Fix use of extern static warnings by wrapping in unsafe block (error E0133)

Fix zero-size struct warnings on certain CT* types
2017-07-04 10:22:36 +04:00
Thomas Winwood 32a02b5916 Remove unnecessary mutability 2017-06-29 08:04:26 +01:00
Thomas Winwood 7ce0615193 Remove unnecessary parentheses around if condition 2017-06-29 08:03:14 +01:00
Kartikaya Gupta 9203aad673 Flip the lion feature into a mountainlion feature which is additive rather than subtractive 2017-06-20 16:23:23 -04:00
Kartikaya Gupta 97923f8535 Add a lion feature for 10.7 compatibility 2017-06-20 12:11:11 -04:00
bors-servo 7a267bc8f6 Auto merge of #58 - algesten:font_path, r=jdm
font_path may be null

Given PR #57, we can quite easily get `CTFontDescriptor` that returns `null` for the `font_path`.

In the default font chains I've seen at least two fonts that are part of the chains but we can't get the `font_path`. Interestingly the font names and family names are prefixed with a `.` as if to indicate they are internal:

      ".Apple Symbols Fallback",
      ".Noto Sans Universal",

This is a breaking change, so may be undesirable, but I think it requires discussion.

Here's the full fallback list for `Menlo` and language `en`.

```
      "Monaco",
      ".Apple Symbols Fallback",
      "Lucida Grande",
      "Courier New",
      "Ayuthaya",
      "Kailasa",
      "PingFang SC",
      "PingFang TC",
      "Hiragino Sans",
      "Hiragino Sans GB",
      "Apple SD Gothic Neo",
      "PingFang HK",
      "Kohinoor Bangla",
      "Kohinoor Devanagari",
      "Gujarati Sangam MN",
      "Gurmukhi MN",
      "Kannada Sangam MN",
      "Khmer Sangam MN",
      "Lao Sangam MN",
      "Malayalam Sangam MN",
      "Myanmar Sangam MN",
      "Oriya Sangam MN",
      "Sinhala Sangam MN",
      "Tamil Sangam MN",
      "Kohinoor Telugu",
      "Mshtakan",
      "Euphemia UCAS",
      "Plantagenet Cherokee",
      ".Noto Sans Universal",
      "Apple Color Emoji"
```

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-text-rs/58)
<!-- Reviewable:end -->
2017-05-15 14:12:48 -05:00
Martin Algesten 66b4970a4d CTFontCopyDefaultCascadeListForLanguages 2017-05-15 20:45:39 +02:00
Martin Algesten 2e97ea2d63 font_path may be null 2017-05-15 20:45:03 +02:00
Jeff Muizelaar 928c0e96d4 Add kCTFontColorGlyphsTrait 2016-10-31 13:17:37 -04:00
Matt Brubeck e3c50e0d56 Add binding for CTFontGetUnitsPerEm 2016-05-19 08:59:50 -07:00
Olaf Buddenhagen 43d0edb208 Derive Debug for CTFont, CTFontCollection, CTFontDescriptor
These are all the structs as far as I can see.
2015-12-10 00:56:29 +01:00
Patrick Walton ebd9b347ac Add support for drawing glyphs and fetching their bounding rects 2015-10-28 17:28:01 -07:00
Patrick Walton 8380931660 Allow the URL of the Core Text font to be fetched.
This allows FreeType to load Core Text fonts, which is necessary for
WebRender (unless we want a Quartz backend for WebRender).
2015-09-30 17:50:30 -07:00
Patrick Walton e2fd92cb23 Add a Clone impl to CTFont 2015-07-30 18:05:20 -07:00
Jack Moffitt fada42a6c8 Remove cfgs. 2015-06-02 23:43:28 -06:00
Simon Sapin bc6994c376 Upgrade to rustc 1.0.0-dev (47551b574 2015-04-14) (built 2015-03-18) 2015-04-23 18:33:00 +02:00
Josh Matthews 8809f01144 Upgrade to rustc 1.0.0-dev (d3c49d214 2015-03-10) (built 2015-02-24) 2015-03-13 11:38:40 -04:00
Josh Matthews b5cb339053 Fix usage of from_str and prelude removals. 2015-01-15 15:54:25 -05:00
Josh Matthews cb369a26a0 Upgrade to latest Rust. 2015-01-05 11:04:40 -05:00
Jack Moffitt 33e8676835 Fix warnings for new Rust 2014-11-05 18:59:55 -07:00
Jack Moffitt 3b37647f7d Upgrade Rust. 2014-11-05 13:45:50 -07:00
Glenn Watson 67f8dbf78d Handle create_for_family() not matching any fonts to avoid crash. 2014-10-21 14:40:17 +10:00
Keegan McAllister 4e7672ab98 Rust upgrade 2014-09-16 11:41:17 -07:00
Jack Moffitt 7d0bda9029 Cargoify rust-core-text 2014-08-25 22:06:14 -06:00