Commit Graph

45 Commits

Author SHA1 Message Date
Josh Matthews 2393333957 Major version release for core-text. 2019-11-05 12:55:10 +01:00
Anthony Ramine 24d9ccc2c3 Properly make core_text::font::Font be Send and Sync
The Apple documentation says:

> All individual functions in Core Text are thread-safe. Font objects (CTFont,
> CTFontDescriptor, and associated objects) can be used simultaneously by
> multiple operations, work queues, or threads. However, the layout objects
> (CTTypesetter, CTFramesetter, CTRun, CTLine, CTFrame, and associated objects)
> should be used in a single operation, work queue, or thread.

https://developer.apple.com/documentation/coretext
2019-11-05 12:17:49 +01:00
Ivan Zub 4486e9e208 Bump versions of dependant packages 2019-10-26 20:27:40 +02:00
Wesley Moore bc20614a3b Add get_available_font_tables to CTFont 2019-10-11 16:49:05 +11:00
Birunthan Mohanathas 5200688b1b Bump core-text to 13.3.0
The only API change since the last bump is #321.
2019-07-17 15:28:10 +03:00
bors-servo 0ed0c4b7d9 Auto merge of #321 - poiru:font-descriptor-format, r=jdm
Implement CTFontDescriptor::font_format()

<!-- 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-foundation-rs/321)
<!-- Reviewable:end -->
2019-07-16 16:50:16 -04:00
atouchet 7430046924 Update Travis CI URLs 2019-07-14 21:16:49 -07:00
Birunthan Mohanathas 28557ccc85 Implement CTFontDescriptor::font_format() 2019-07-14 12:07:35 +03:00
bors-servo b49b02d720 Auto merge of #294 - servo:jdm-patch-2, r=jrmuizel
Increase minor version for core-text to 13.2.0.

This includes changes from #293 and #269 which only add new public APIs.

<!-- 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-foundation-rs/294)
<!-- Reviewable:end -->
2019-03-28 17:32:49 -04:00
Bruce Mitchener 0fbabb35e9 Use assert_eq! when possible instead of assert! 2019-03-21 21:55:00 +07:00
Bruce Mitchener d0a08919f4 core-text: Remove use of mem::transmute. 2019-03-18 09:27:59 +07:00
Bruce Mitchener 3e8acddee2 clippy: Use is_null instead of != ptr::null(). 2019-03-14 21:12:12 +07:00
Josh Matthews 1a76949f13 Increase minor version for core-text to 13.2.0. 2019-03-11 16:41:52 -04:00
Sam Rijs 20348e0b8f implement CTFont::get_glyph_with_name 2019-02-09 12:30:48 +11:00
bors-servo 42a6014bf4 Auto merge of #269 - jrmuizel:run, r=jdm
Add some minimal bindings for CTLine and CTRun

<!-- 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-foundation-rs/269)
<!-- Reviewable:end -->
2018-11-14 17:42:48 -05:00
Jeff Muizelaar 42889636bf Add some minimal bindings for CTLine and CTRun 2018-11-08 16:03:21 -05:00
Jan Andre Ikenmeyer 77bb7b6cfe Remove unneeded webhook notification 2018-11-07 00:06:36 +01:00
Josh Matthews 7ec88453f5 Update version of core-foundation for core-text. 2018-10-09 14:01:17 -04:00
Jeff Muizelaar 0b377a959b Bump the versions of a bunch crates. 2018-09-28 13:19:37 -04:00
Ryan Leckey 7ec49da393 Add CTFrame and CTFramesetter 2018-08-20 16:29:13 -07:00
Jeff Muizelaar eb8c53f8cd Comment out unused function 2018-08-07 17:28:17 -04:00
Patrick Walton d7b3893a2b Add a binding to CTFontGetGlyphCount() 2018-08-02 14:36:53 -07:00
Patrick Walton f89d2345de Make CTFontCollection::get_descriptors() return an Option.
It returns null if there are no matching fonts.
2018-07-27 15:09:47 -07:00
Patrick Walton 46f432ef1b Make get_advances_for_glyphs and get_vertical_translations_for_glyphs unsafe.
Closes #238.
2018-07-25 14:10:03 -07:00
Patrick Walton 243472042a Add several new functions to Core Graphics and Core Text for font-kit's use.
This bumps the major version of `core-text` since the previous version of
`get_glyphs_for_characters` was unsoundly marked safe before and is now marked
unsafe.
2018-07-25 08:50:35 -07:00
Josh Matthews 5ad8278088 Do major version bumps for core-graphics update. 2018-07-20 16:38:24 -04:00
Josh Matthews a5935351b5 Hide a 10.13+ API behind a cargo feature. 2018-07-20 11:15:53 -04:00
Jeff Muizelaar 645779912b Consistently use std::os::raw::c_void instead of libc::c_void
The major versions of cocoa and core-graphics are bumped as I believe
they are the only crates that meaningfully expose c_void.

Fixes #212
2018-05-06 19:00:37 -04:00
Jeff Muizelaar 5e77c85500 Expose CTFontCopyVariationAxes.
WebRender uses this function so it's probably useful to expose.
2018-05-03 17:01:26 -04:00
Jeff Muizelaar bb9ce9e8e1 Update all of the major versions for the new releases
Basically everything needed to be bumped because of changes to
core-foundation-sys
2018-05-02 17:46:00 -04:00
Josh Matthews e614c2df26 Only allow CFNumber font variations. 2018-05-02 16:56:27 -04:00
bors-servo 022d74218c Auto merge of #196 - jrmuizel:text-stronger-types, r=jdm
Use stronger types in the core-text CFDictionaries

<!-- 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-foundation-rs/196)
<!-- Reviewable:end -->
2018-02-07 14:19:17 -05:00
Jeff Muizelaar b7f60a3c9d Use stronger types in the CFDictionaries 2018-02-07 14:11:21 -05:00
Jeff Muizelaar 97ec75c14d Redo the interface of CFDictionary and CFMutableDictionary
This is a pretty big change to take advantge of the type parameters.
It simplifies things and makes them more safe.
2018-02-07 10:58:33 -05:00
Birunthan Mohanathas c4344498ae Allow creating font descriptor with PostScript name 2018-02-06 17:49:05 -08:00
Lee Salzman 4dd878b3d3 bump core-text version 2018-02-06 07:45:40 -08:00
Lee Salzman 25ce729f76 allow creating a CTFont from a CGFont with variations 2018-02-06 07:42:06 -08:00
bors-servo 0cfc7f6b0a Auto merge of #191 - waywardmonkeys:fix-some-core-text-clippy-warnings, r=jdm
Fix some core text clippy warnings

<!-- 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-foundation-rs/191)
<!-- Reviewable:end -->
2018-02-04 09:53:55 -05:00
Bruce Mitchener 2aae249d43 core-text: Fix some clippy warnings. 2018-02-04 21:38:13 +07:00
Bruce Mitchener ee2a3633df core-text: Remove unused imports.
This warning was introduced due to the changes made in
21f20e2f93.
2018-02-04 21:30:25 +07:00
bors-servo 16ddf909ac Auto merge of #188 - jrmuizel:font-path, r=jdm
Return a PathBuf instead of a String

This is just better.

<!-- 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-foundation-rs/188)
<!-- Reviewable:end -->
2018-02-03 00:51:40 -05:00
Jeff Muizelaar 21f20e2f93 Return a PathBuf instead of a String
This is just better.
2018-02-02 21:23:11 -05:00
Jeff Muizelaar 5616935b56 Give CFDictionary type parameters for keys and values
There's more to be done to clean up the interface now that we have
type parameters but this is a good place to start.
2018-02-02 16:56:37 -05:00
Josh Matthews f54a90e64b Use local paths for local dependencies. 2018-02-01 16:18:35 -05:00
Josh Matthews 52bc040a9a Import core-text. 2018-02-01 15:52:56 -05:00