From 86271a87b0b667220218ebdf951e2df14f9ef697 Mon Sep 17 00:00:00 2001 From: Natalya Date: Fri, 17 Nov 2017 21:32:21 +0200 Subject: [PATCH] Add iOS support --- Cargo.toml | 2 -- src/font.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2305818..92aaaf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,5 @@ mountainlion = [] [dependencies] foreign-types = "0.3" libc = "0.2" - -[target.x86_64-apple-darwin.dependencies] core-foundation = "0.4" core-graphics = "0.11" diff --git a/src/font.rs b/src/font.rs index cf14aee..b9a06f7 100644 --- a/src/font.rs +++ b/src/font.rs @@ -417,7 +417,7 @@ pub fn cascade_list_for_languages(font: &CTFont, language_pref_list: &CFArray) - } } -#[link(name = "ApplicationServices", kind = "framework")] +#[link(name = "CoreText", kind = "framework")] extern { /* * CTFont.h