Giter Site home page Giter Site logo

Comments (9)

simoncozens avatar simoncozens commented on June 24, 2024 1

We already have this. Repos based on the googlefonts-project-template will have a sources/config.yaml which identifies the sources to build. Running gftools-builder sources/config.yaml on any compliant repo should build the relevant sources. This is how gfautobuilder (which I mentioned in your issue) works. builder2 is merged now. I'm seriously considering making a switch which makes the actual build-the-font operations use fontc instead of fontmake.

from fonts.

simoncozens avatar simoncozens commented on June 24, 2024 1

In fact it's even easier than messing with the SourceProto. If we have a config.yaml in google/fonts/ofl/whatever, use it, otherwise use theirs.

from fonts.

simoncozens avatar simoncozens commented on June 24, 2024

This is something I have been thinking about. There is a speadsheet here which tracks the library-wide fails and gives suggestions for how to fix them. Many of the issues can be scripted or hotfixed, but the best way to start is to track down as many upstream repos as we can, which I have been working on.

from fonts.

davelab6 avatar davelab6 commented on June 24, 2024

Adobe Fonts have also been working on this per the adobe-fonts fontbakery profile, made a Google Sheet to triage with me, and then drove a fonttools hotfix process using internal scripting with results posted to Drive only.

They identified the following indic fonts that lack a Rupee character, so adding that will be a good priority small-fix commission :)

  • Kavivanar
  • Modak
  • Palanquin
  • Palanquin Dark
  • Pavanam
  • Sumana

from fonts.

rsheeter avatar rsheeter commented on June 24, 2024

It would be helpful to fontc testing and adoption if we could include the ability to find the sources and identify which specific ones to compile as part of this. This enables us to test build things (googlefonts/fontc#724).

from fonts.

simoncozens avatar simoncozens commented on June 24, 2024

Repos based on the googlefonts-project-template will have a sources/config.yaml

This said, one thing I've found to be fairly common is that we have repos containing multiple font families. e.g. Big Shoulders has a subdirectory for Big Shoulders, Big Shoulders Inline and Big Shoulders Stencil. Each subdirectory has its own sources/config.yaml.

It may be useful to add a metadata field to the SourceProto to help distinguish how to build these things. Either:

  • config: "We expecting every upstream to have a gftools-builder config.yaml, here is where it lives in the repo." This would be ideal but problematic on some fonts which have idiosyncratic non-Google build processes (For example, the SIL fonts which use their own build toolchain) and for non-commissioned fonts where we can build them from source, but we don't have the ability to put a config.yaml file in their repo.
  • source_files: "Here are the arguments to gftools-builder, which may be a config.yaml for repositories under our control, and a list of font source paths for repositories we don't control."
  • build_script: "Here are the commands to build the family."

@rsheeter @m4rc1e WDYT?

from fonts.

rsheeter avatar rsheeter commented on June 24, 2024

I immediately wonder if google/fonts could store the config for the cases where we can't get it upstream? Concretely, I'm imagining the SourceProto config that is able to distinguish local repo from upstream. It might not be modelled exactly like this but conceptually origin/path/to/config means it's in this repo, upstream/path/to/config means it's in the remote.

We would prefer upstream but not strictly require it.

from fonts.

simoncozens avatar simoncozens commented on June 24, 2024

I like that a lot. It means as gftools-builder advances we can very easily bring more cleverness into the build, and it helps us to build complex upstream projects out of our control, without requiring us to fork the upstream or keep pushing changes to them.

from fonts.

rsheeter avatar rsheeter commented on June 24, 2024

For the case of an upstream repo with many config.yaml do you need a field in SourceProto to allow specification of which one to use?

from fonts.

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.