Skip to content

Commit 4962705

Browse files
committed
feat: remove feature gate to compile in stable rust
1 parent 90774ff commit 4962705

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fontkit"
3-
version = "0.4.5"
3+
version = "0.4.6"
44
edition = "2021"
55
authors = ["Zimon Dai <[email protected]>"]
66
description = "A simple library for font loading and indexing"

rust-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(doc_auto_cfg)]
2-
31
#[cfg(not(wasm))]
42
use std::cell::RefCell;
53
#[cfg(not(dashmap))]

tests/basic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ pub fn test_font_loading() -> Result<(), Error> {
1515
#[test]
1616
pub fn test_variable_font_loading() -> Result<(), Error> {
1717
let mut buf = vec![];
18-
let mut f = fs::File::open("examples/AlimamaFangYuanTiVF.ttf")?;
18+
let mut f = fs::File::open("examples/AlimamaFangYuanTiVF-VF-HVAR.woff2")?;
1919
f.read_to_end(&mut buf)?;
2020
let fontkit = fontkit::FontKit::new();
2121
let _ = fontkit.add_font_from_buffer(buf)?;
22+
println!("{:?}", fontkit.font_keys().collect::<Vec<_>>());
2223
let mut key = FontKey::default();
2324
key.family = "AlimamaFangYuanTiVF-Medium-Round".into();
2425
let bitmap_1 = fontkit

0 commit comments

Comments
 (0)