From: Viviana Monsalve Date: Thu, 29 Sep 2022 23:17:09 +0000 (-0500) Subject: Update axis registry: YEAR, ELSH, ELGR (#5333) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36cf14ce4e304971627cce10b437a300d86718bb;p=thirdparty%2Fgoogle%2Ffonts.git Update axis registry: YEAR, ELSH, ELGR (#5333) * Creating `flair.svg` * y_transparent_descender.textproto Use depth, not height * weight and width textprotos updated to say stroke weight * update tox * run black * wip name builder * add build_fvar_instances * black * wip linked values * fix vf name table generation for sibling fonts * add nameID25 * black * test static name table generation * rm local stuff * add prelim fvar instance check * improve fvar instance checks * cleanup stat tests * run black * fix tests * ignore egg-info * ignore _version * refactor name check * Add VF tests * black * add logging * clean up * convert AxisRegistry into a class * clean up * use enums * replace old family name with new name * add test for style name which is not part of the allowed static fonts * add nameID25 checks * add build filename * fix replacing names * simplyify * implement Simon feedback * Add wonky example * do not delete stat name ids if they are used in the fvar table * do not delete name records which are needed elsehwere * implement simon feedback * actions: publish release added * build_fvar_instances: support fonts which lack wght axis * AxisRegistry: add items method * add _fvar_instance_collision. Determine whether a family of fonts will have fvar instances which collide * add axis ordering * fix fvar_collision heuristic * black * Don't delete name IDs which are shared with the STAT table * Update __init__.py * build_fvar_instances: fix typo * fix dependencies * black * update tox * tox black: ignore _version.py * Move nameid25 to its own func * make family_name optional * Custom axis YEAR added * Year url/repo ref added * ESHP custom axis added * EGRD custom axis added * Update Lib/axisregistry/data/element_shape.textproto Change ESHP axis tag to ELSP * Add Extrusion Depth and Edge Highlight axes for Nabla * Update Lib/axisregistry/data/extrusion_depth.textproto Co-authored-by: Just van Rossum * Update edge_highlight.textproto Use Nabla's default value rather zero * Update extrusion_depth.textproto Use Nabla's default value rather zero * Add a fallback to egrid * Update name of fallback per https://github.com/rosettatype/handjet#element-grid-axis-egrd * For reasons unknown fallbacks don't have spaces in names * Add default fallback entries * Default falback added * order fix * ELSP Default falback added * All axes must have a fallback (issue #67) * Adding the default fallback requirement * sync with google/fonts * Revert "sync with google/fonts" * sync google/fonts axisregistry changes with googlefonts/axisregistry includes Edge Highlight, Element Grid, and Extrusion Depth edits * fallback_only metadata added * fallback_only metadata added * Update EDPT description based on discussion with Sarah Daily * Update element_grid.textproto Element shape is ELSH, so Element grid should be ELGR * HyperExpansion axis added * Update hyper_expansion.textproto * italic.textproto reduce precision from -1 to 0 Since we don't support the ital axis, in fact, and require separate roman and italic files at the moment (due to concerns eg in https://arrowtype.github.io/vf-slnt-test), then we should reflect that actual implementation in the axis definition. Since we have zero families with an ital axis, this should be a no-op when pushed; but this is a very peculiar move, and may have unexpected consequences when pushed. * Update hyper_expansion.textproto * Update flair.textproto to correct precision to -1 * Update element_shape.textproto * description updated with more details * description updated with more details + moved to bottom Co-authored-by: Elliot Jay Stocks Co-authored-by: Dave Crossland Co-authored-by: Marc Foley Co-authored-by: Nathan Williams Co-authored-by: Simon Cozens Co-authored-by: Chris Simpkins Co-authored-by: Just van Rossum Co-authored-by: Rod S Co-authored-by: Felipe CorrĂȘa da Silva Sanches Co-authored-by: Rosalie Wagner --- diff --git a/axisregistry/Lib/axisregistry/data/element_grid.textproto b/axisregistry/Lib/axisregistry/data/element_grid.textproto index ee90262c02..393513fce6 100644 --- a/axisregistry/Lib/axisregistry/data/element_grid.textproto +++ b/axisregistry/Lib/axisregistry/data/element_grid.textproto @@ -1,14 +1,16 @@ #Element Grid, based on https://github.com/rosettatype/handjet -tag: "EGRD" +tag: "ELGR" display_name: "Element Grid" min_value: 1.0 default_value: 1.0 max_value: 2.0 precision: -1 -description: - "Controls how many elements are used per one grid unit." fallback { name: "Default" value: 1.0 } -fallback_only: false \ No newline at end of file +fallback_only: false +description: + "In modular fonts, where glyphs are composed using multiple copies" + " of the same element, this axis controls how many elements" + " are used per one grid unit." diff --git a/axisregistry/Lib/axisregistry/data/element_shape.textproto b/axisregistry/Lib/axisregistry/data/element_shape.textproto new file mode 100644 index 0000000000..9fe49f48e3 --- /dev/null +++ b/axisregistry/Lib/axisregistry/data/element_shape.textproto @@ -0,0 +1,15 @@ +#Element Shape, based on https://github.com/rosettatype/handjet +tag: "ELSH" +display_name: "Element Shape" +min_value: 0.0 +default_value: 0.0 +max_value: 100.0 +precision: -1 +fallback { + name: "Default" + value: 0.0 + } +fallback_only: false +description: + "In modular fonts, where glyphs are composed using multiple copies" + " of the same element, this axis controls the shape of the element" diff --git a/axisregistry/Lib/axisregistry/data/year.textproto b/axisregistry/Lib/axisregistry/data/year.textproto new file mode 100644 index 0000000000..ce4ff43189 --- /dev/null +++ b/axisregistry/Lib/axisregistry/data/year.textproto @@ -0,0 +1,15 @@ +# YEAR based on https://github.com/dancoull/ClimateCrisis +tag: "YEAR" +display_name: "Year" +min_value: -4000 +default_value: 2000 +max_value: 4000 +precision: 0 +fallback { + name: "Default" + value: 2000 +} +fallback_only: false +description: + "Axis that shows in a metaphoric way the effect of time on a chosen topic." +