pdf-rs / font Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hey,
I would like to depend on this project transitively through grafeia/ReX as it can work with arbitrary font files in contrast to the original ReX.
However, this project as well unicode-math unfortunately don't have license files. In case you would like for this project to be permissively accessible, it would be very kind if you could add license files!
Needed for grafeia/grafeia#2
I opened the following PDF using pdf-rs and tried to render it using pdf_render.
https://arxiv.org/pdf/1912.13318.pdf
However, I got the following error:
[2021-05-05T04:24:11Z DEBUG font::type1] FontDict keys: /"FontInfo", /"CharStrings", /"FontName", /"Encoding", /"FontBBox", /"FontMatrix", /"FontType", /"PaintType", /"Private"
[2021-05-05T04:24:11Z DEBUG font::type1] Private keys: /"MinFeature", /"BlueFuzz", /"Subrs", /"FamilyOtherBlues", /"lenIV", /"password", /"FamilyBlues", /"BlueScale", /"LanguageGroup", /"StemSnapV", /"ExpansionFactor", /"OtherSubrs", /"StemSnapH", /"BlueValues", /"ForceBold", /"OtherBlues", /"NP", /"RD", /"ND", /"BlueShift", /"StdHW", /"StdVW"
[2021-05-05T04:24:11Z DEBUG font::type1] FontName: Some(/"GLEUEB+LinLibertineT")
[2021-05-05T04:24:11Z DEBUG font::type1] FontInfo: Some()
thread 'main' panicked at 'tried to cast a float to int', /Users/k-akabe/.cargo/git/checkouts/font-06ada714b08e6cdd/a2ff1d2/src/lib.rs:208:32
stack backtrace:
0: std::panicking::begin_panic
at /Users/k-akabe/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:519:12
1: font::Value::to_int
at /Users/k-akabe/.cargo/git/checkouts/font-06ada714b08e6cdd/a2ff1d2/src/lib.rs:208:32
2: font::type1::charstring
at /Users/k-akabe/.cargo/git/checkouts/font-06ada714b08e6cdd/a2ff1d2/src/type1.rs:287:31
3: font::type1::Type1Font::from_vm
at /Users/k-akabe/.cargo/git/checkouts/font-06ada714b08e6cdd/a2ff1d2/src/type1.rs:125:13
4: font::type1::Type1Font::parse_postscript
at /Users/k-akabe/.cargo/git/checkouts/font-06ada714b08e6cdd/a2ff1d2/src/type1.rs:73:9
5: font::parse
at /Users/k-akabe/.cargo/git/checkouts/font-06ada714b08e6cdd/a2ff1d2/src/lib.rs:419:29
6: pdf_render::cache::Cache::load_font
at /Users/k-akabe/.cargo/git/checkouts/pdf_render-56211f49c16f7190/4b123c5/render/src/cache.rs:104:38
7: pdf_render::cache::Cache::render_page
at /Users/k-akabe/.cargo/git/checkouts/pdf_render-56211f49c16f7190/4b123c5/render/src/cache.rs:166:13
8: pftest::main
at ./src/main.rs:112:26
9: core::ops::function::FnOnce::call_once
at /Users/k-akabe/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.