GithubHelp home page GithubHelp logo

fontgardener's People

Contributors

madig avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fontgardener's Issues

Import/Export: collect glyphs used as components

Some sets can use glyphs from other sets as components (i.e. "A-cy" may use "A"). Fontgardener should

  1. on import: also import glyphs used as components by glyphs on the import list, into their appropriate set
  2. on export: also export glyphs used as components by glyphs on the export list.

Glyphs used in substitutions are left out for now and have to be manually placed on the (im|ex)port list, until the tool actually has a better idea about OpenType Layout.

Use case: a designer wants to work on e.g. the Cyrillic set but needs parts of the Latin set for it.

If the indirectly imported glyphs aren't in a set yet, they'll land in the same set as their users. This may not be what one wants in some instances, so later, glyphs need to be able to move.

Maybe there should be an option to not do this on import, but for now, undoing those changes manually seems ok to me.

First-time import incomplete

The following import of Noto Sans will import Bold Italic incompletely, only when running it a second time is the import complete:

> fontgardener new NotoSansDemo2.fontgarden

> fontgardener import NotoSansDemo2.fontgarden --set LatinGreekCyrillic --glyphs-file $env:TEMP\NotoUFOs\LatinGreekCyrillic.txt $env:TEMP\NotoUFOs\NotoSans-MM\NotoSans-Bold.ufo $env:TEMP\NotoUFOs\NotoSans-ItalicMM\NotoSans-BoldItalic.ufo

Data structure for glyphs

Currently, glyph data is organized into sets into sources into layers into glyphs, sort of extending the UFO data model of putting glyphs in layers.

  1. It works, but introduces some inelegance when e.g. you want to export glyphs and want to determine, per layer, which other glyphs you have to also export because they're used in composites.
  2. It leads to a lot of files on disk.

I wonder if there could be a more elegant data structure where e.g. you keep the sources with all glyphs and have a separate glyph->set mapping in a regular HashMap<NameOfGlyph, NameOfSet> :thinking_face:

Or even turn the relation on its head and have glyphs contain set name, sources and layers, sort of like Glyphs.app and FontLab 7 do.

You could even keep the structure on disk if desired and do the head-turning internally.

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.