Giter VIP home page Giter VIP logo

tensorfont's People

Contributors

simoncozens avatar skosch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tensorfont's Issues

Numpy deprecated error

Please update the support for numpy version of the package. When I call the function as_matrix() for the glyph the numpy library broke the system for deprecated function.

Numpy no longer uses np.float, but float built-in

Docs terminology

There are a couple of doc strings that I think are not as clear as they could be.

For example, in the Font properties dealing with ascenders & descenders, the docs say things like "The font’s ascender height, in font units and pixels."

From a non–font-engineer's perspective, I worry that could be ambiguous as to whether it's referring to "baseline to the top of d/h/l/b", "x-height to the top of d/h/l/b", hheaAscender, typoAscender, or winAscent. So it'd be better to be explicit.

Font properties

If I understand the intent of the Font class, its properties are meant to capture "inherent" geometric/optical characteristics.

Assuming that's the case, I'd think there are a few additional ones to consider — such as stroke & aperture metrics. Certainly the width of vertical strokes. I would actually think that the width of n would be more immediately useful than m, but I may be misinterpreting the goal.

Essentially, what the set of valuable properties is could be an endless debate, but for classifying typefaces I've been trying to stick to the TypeNetwork parametric-axes model, and I think that works pretty well. So would it make sense to use that as a guide?

It'd essentially be adding horizontal & vertical stem measurements for capitals and lowercase, plus counter widths for capitals & lowercase. That gives you context-free way to measure weight and width (well, in Latin and sister scripts, anyway).

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.