[fontations] Remove read-fonts direct dependency

This commit is contained in:
Behdad Esfahbod committed 2025-05-07 18:51:22 -06:00
1 parent 2e9b431501
commit 7f682a074e
3 files changed
+6 -8

No files matched your search

-1
View File
@@ -52,7 +52,6 @@ version = "0.0.0"
dependencies = [
"font-types",
"harfruzz",
"read-fonts",
"skrifa",
]
+1 -2
View File
@@ -4,7 +4,6 @@ edition = "2021"
[dependencies]
font-types = { version = "0.*", optional = true }
read-fonts = { version = "0.*", optional = true }
skrifa = { version = "0.*", optional = true }
harfruzz = { version = "0.1", optional = true }
@@ -14,7 +13,7 @@ path = "lib.rs"
crate-type = ["staticlib"]
[features]
font = ["dep:read-fonts", "dep:skrifa"]
font = ["dep:skrifa"]
shape = ["dep:font-types", "dep:harfruzz"]
[profile.release]
+5 -5
View File
@@ -7,11 +7,6 @@ use std::ptr::null_mut;
use std::sync::atomic::{AtomicPtr, AtomicU32, Ordering};
use std::sync::{Mutex, OnceLock};
use read_fonts::tables::cpal::ColorRecord;
use read_fonts::tables::vmtx::Vmtx;
use read_fonts::tables::vorg::Vorg;
use read_fonts::tables::vvar::Vvar;
use read_fonts::TableProvider;
use skrifa::charmap::Charmap;
use skrifa::charmap::MapVariant::Variant;
use skrifa::color::{
@@ -22,6 +17,11 @@ use skrifa::instance::{Location, NormalizedCoord, Size};
use skrifa::metrics::{BoundingBox, GlyphMetrics};
use skrifa::outline::pen::OutlinePen;
use skrifa::outline::DrawSettings;
use skrifa::raw::tables::cpal::ColorRecord;
use skrifa::raw::tables::vmtx::Vmtx;
use skrifa::raw::tables::vorg::Vorg;
use skrifa::raw::tables::vvar::Vvar;
use skrifa::raw::TableProvider;
use skrifa::OutlineGlyphCollection;
use skrifa::{GlyphId, GlyphNames, MetadataProvider};