Giter VIP home page Giter VIP logo

Comments (7)

frankrolf avatar frankrolf commented on May 27, 2024

The Unicode values are assigned at build time though makeotf, which reads that data from the GlyphOrderAndAliasDB file.

from source-sans.

weiweihuanghuang avatar weiweihuanghuang commented on May 27, 2024

Not a bug then! But how does it know which unicode to assign each glyph, is it in the 2nd column (standardised naming)?

from source-sans.

weiweihuanghuang avatar weiweihuanghuang commented on May 27, 2024

And what's the best way to get the unicode values into the .UFO if we wanted to use a .UFO editor…?

from source-sans.

frankrolf avatar frankrolf commented on May 27, 2024

There is a list of standardized glyph names, commonly know as the agl (Adobe Glyph List).
Within the FDK, this data is called via the agd module.
You can search the FDK repo for agl for more information.
The AGL even has a Wikipedia entry.

Additionally, here is a listing of the AL1 – AL5 character sets we use:
https://github.com/adobe-type-tools/adobe-latin-charsets

If you want to get Unicode values in a UFO I suggest the Robofab method glyph.autoUnicodes(); which also relies on the info given in the agl list.

from source-sans.

miguelsousa avatar miguelsousa commented on May 27, 2024

But how does it know which unicode to assign each glyph, is it in the 2nd column (standardised naming)?

By processing the names in the 1st column. The Unicode values for standard names are assigned according to the AGLFN. Names that follow the format uniXXXX will be Unicode-encoded as XXXX. GlyphOrderAndAliasDB entries that have a value in the 3rd column (e.g. glyph f_f), will get that Unicode value.

Glyphs with names that don't follow any of the rules above, will get no Unicode value.

from source-sans.

weiweihuanghuang avatar weiweihuanghuang commented on May 27, 2024

Thanks for the clear explanation. Why are the unicode values not encoded into the .UFO though?

from source-sans.

miguelsousa avatar miguelsousa commented on May 27, 2024

Because they aren't needed. The OTFs are built with makeotf and this tool gets all the Unicode information it needs from the GlyphOrderAndAliasDB file.

from source-sans.

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.