Code Monkey home page Code Monkey logo

font's People

Contributors

s3bk avatar vbkaisetsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

font's Issues

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!

Fails to load some fonts contained in PDF

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.