Giter Club home page Giter Club logo

Comments (5)

kenlunde avatar kenlunde commented on July 3, 2024

While @readroberts is the one to provide a definitive answer, as a user of makeotf, I would claim that the 'kern' feature as provided in the features file excerpt should raise a syntax error because the expectation is that a single integer value follow a pair of glyph names, not a four-element array of X and Y placement and advance values. In other words, the font shouldn't have successfully compiled in the first place.

from afdko.

frankrolf avatar frankrolf commented on July 3, 2024

An array of four kern values is frequently seen in RTL scripts, where both advance width and x-position are modified, here is an example:
pos arAlefMadda arTeh <-80 0 -80 0>;

RTL kerning is usually wrapped into its own lookup:

feature kern {
    lookup LATIN_KERNING {
        include (kern_latin.fea)
    } LATIN_KERNING;

    lookup ARABIC_KERNING {
        lookupflag RightToLeft IgnoreMarks;
        include (kern_arabic.fea)
    } ARABIC_KERNING;
} kern;

I don’t think mixing the both kerning styles in the same lookup yields the desired result.
Also – it is very uncommon to do a baseline- and y-adjustment for a Latin pair, is that what you are trying to achieve?

from afdko.

kenlunde avatar kenlunde commented on July 3, 2024

Thank you, @frankrolf, for the clarification and education.

from afdko.

readroberts avatar readroberts commented on July 3, 2024

I imagine that this is an uninitialized variable bug. I suspect that once format B has been used, it is used for subsequent records, even if those use format A. The three values that are not specified are then random. I will look at this.

from afdko.

readroberts avatar readroberts commented on July 3, 2024

Fixed in makeotfexe

from afdko.

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.