Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
26
third-party/vendor/owned_ttf_parser/README.md
vendored
Normal file
26
third-party/vendor/owned_ttf_parser/README.md
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
owned_ttf_parser
|
||||
[](https://crates.io/crates/owned_ttf_parser)
|
||||
[](https://docs.rs/owned_ttf_parser)
|
||||
================
|
||||
[ttf-parser](https://github.com/RazrFalcon/ttf-parser) plus support for owned data.
|
||||
|
||||
Provides `OwnedFace`, `AsFaceRef` and re-exports `ttf_parser::*`.
|
||||
|
||||
## Example
|
||||
```rust
|
||||
use owned_ttf_parser::{AsFaceRef, OwnedFace, Face};
|
||||
|
||||
let owned_face = OwnedFace::from_vec(owned_face_data, 0).unwrap();
|
||||
let face_ref: &Face<'_> = owned_face.as_face_ref();
|
||||
|
||||
assert_eq!(face_ref.ascender(), 2254);
|
||||
```
|
||||
|
||||
## no_std
|
||||
no_std environments are supported using `alloc`.
|
||||
```toml
|
||||
owned_ttf_parser = { default-features = false }
|
||||
```
|
||||
|
||||
## Minimum supported rust compiler
|
||||
All crates maintained with [latest stable rust](https://gist.github.com/alexheretic/d1e98d8433b602e57f5d0a9637927e0c).
|
||||
Loading…
Add table
Add a link
Reference in a new issue