Giter Club home page Giter Club logo

Comments (4)

galkahana avatar galkahana commented on July 20, 2024

Makes sense.
sounds like the major part of testing here is to figure out they really got a mac resource file.
can this be taken care of without these tests?

Gal.

from pdf-writer.

TheGS avatar TheGS commented on July 20, 2024

A resource-based font packaged in resources in the data fork (as opposed to the traditional resource fork of classic Mac font suitcases) will always have the filename extension ".dfont". For fonts, we can assume that if the filename ends with ".dfont", and the header values at the beginning of the file look sane (according to documentation and common sense), and the parsed resource map has entries for the 'sfnt' resource(s) we're looking for, and the metadata (offset, length, etc.) for those resources look sane, then we can load the 'sfnt' container(s) from those resources.

from pdf-writer.

galkahana avatar galkahana commented on July 20, 2024

Sounds good. i reckon if i can get to sfnt that should be fine, so just be careful with reading etc. comment out and be careful with reading.

k.
I'll try to get to this soon.
i welcome pull requests :) too.

Gal.

from pdf-writer.

galkahana avatar galkahana commented on July 20, 2024

checked in commit which has a safe read of the font file, while avoiding the problematic tests

from pdf-writer.

Related Issues (20)

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.