googlefonts_conditions

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.GFAxisRegistry[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.RIBBI_ttFonts[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.VTT_hinted[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.api_gfonts_ttFont[source][source]

Get a TTFont object of a font downloaded from Google Fonts corresponding to the given TTFont object of a local font being checked.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.canonical_stylename[source][source]

Returns the canonical stylename of a given font.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.descfile[source][source]

Get the path of the DESCRIPTION file of a given font project.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.expected_font_names[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.expected_os2_weight[source][source]

The weight name and the expected OS/2 usWeightClass value inferred from the style part of the font name

The Google Font’s API which serves the fonts can only serve the following weights values with the corresponding subfamily styles:

250, Thin 275, ExtraLight 300, Light 400, Regular 500, Medium 600, SemiBold 700, Bold 800, ExtraBold 900, Black

Thin is not set to 100 because of legacy Windows GDI issues: https://www.adobe.com/devnet/opentype/afdko/topic_font_wt_win.html

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.family_metadata[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.familyname[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.familyname_with_spaces[source][source]

Attempts to build family name from font name. For example, HPSimplifiedSans => HP Simplified Sans. :param familyname: The name of a font.

Returns

The name of the family that should be in this font.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.font_familyname[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.font_familynames[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.font_metadata[source][source]
fontbakery.profiles.googlefonts_conditions.get_glyphsets_fulfilled(ttFont)[source][source]

Returns a dictionary of glyphsets that are fulfilled by the font, and the percentage of glyphs in the font that are in the glyphset. This is following the new glyphset definitions in glyphsets.definitions

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.gfonts_repo_structure[source][source]

The family at the given font path follows the files and directory structure typical of a font project hosted on the Google Fonts repo on GitHub?

fontbakery.profiles.googlefonts_conditions.git_rootdir(family_dir)[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.github_gfonts_description[source][source]

Get the contents of the DESCRIPTION.en_us.html file from the google/fonts github repository corresponding to a given ttFont.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.github_gfonts_ttFont[source][source]

Get a TTFont object of a font downloaded from Google Fonts git repository.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.glyphsFile[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.has_regular_style[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.hinting_stats[source][source]

Return file size differences for a hinted font compared to an dehinted version of same file

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.is_icon_font[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.is_noto[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.is_ofl[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.license_contents[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.license_filename[source][source]

Get license filename.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.license_path[source][source]

Get license path.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.licenses[source][source]

Get a list of paths for every license file found in a font project.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.listed_on_gfonts_api[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.metadata_file[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.production_metadata[source][source]

Get the Google Fonts production metadata

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.readme_contents[source][source]

Get the contents of the README.md file of a font project.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.readme_directory[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.registered_vendor_ids[source][source]

Get a list of vendor IDs from Microsoft’s website.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.regular_remote_style[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.regular_ttFont[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.remote_styles[source][source]

Get a dictionary of TTFont objects of all font files of a given family as currently hosted at Google Fonts.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.rfn_exception[source][source]

These are the very few font families where we accept usage of a Reserved Font Name. These are typically fonts that had already been published previously with an RFN, or fonts which benefit from an agreement with Google Fonts.

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.style_with_spaces[source][source]

Stylename with spaces (derived from a canonical filename).

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.stylenames_are_canonical[source][source]

Are all font files named canonically ?

FontBakeryCondition fontbakery.profiles.googlefonts_conditions.typographic_familynames[source][source]
FontBakeryCondition fontbakery.profiles.googlefonts_conditions.upstream_yaml[source][source]