shared_conditions

FontBakeryCondition fontbakery.profiles.shared_conditions.VFs[source][source]

Returns a list of font files which are recognized as variable fonts

force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.are_ttf[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.bold_wght_coord[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.family_directory[source][source]

Get the path of font project directory.

force = False[source]
fontbakery.profiles.shared_conditions.get_instance_axis_value(ttFont, instance_name, axis_tag)[source][source]
FontBakeryCondition fontbakery.profiles.shared_conditions.glyph_metrics_stats[source][source]

Returns a dict containing whether the font seems_monospaced, what’s the maximum glyph width and what’s the most common width.

For a font to be considered monospaced, at least 80% of the ascii glyphs must have the same width.

force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.is_cff[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.is_cff2[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.is_cjk_font[source][source]

Test font object to confirm that it meets our definition of a CJK font file. The definition is met if any of the following conditions are True:

  1. The font has a CJK code page bit set in the OS/2 table

  2. The font has a CJK Unicode range bit set in the OS/2 table

  3. The font has any CJK Unicode code points defined in the cmap table

force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.is_ttf[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.is_variable_font[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.ital_axis[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.ligature_glyphs[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.ligatures[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.missing_whitespace_chars[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.opsz_axis[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.preferred_cmap[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.regular_ital_coord[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.regular_opsz_coord[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.regular_slnt_coord[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.regular_wdth_coord[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.regular_wght_coord[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.sibling_directories[source][source]

Given a directory, this function tries to figure out where else in the filesystem other related “sibling” families might be located. This is guesswork and may not be able to find font files in other folders not yet covered by this routine. We may improve this in the future by adding other smarter filesystem lookup procedures or even by letting the user feed explicit sibling family paths.

This function returs a list of paths to directories where related font files were detected.

force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.slnt_axis[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.superfamily[source][source]

Given a list of directories, this functions looks for font files and returs a list of lists of the detected filepaths.

force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.superfamily_ttFonts[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.ttFont[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.typo_metrics_enabled[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.unicoderange[source][source]

Get an integer bitmap representing the UnicodeRange fields in the os/2 table.

force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.vmetrics[source][source]
force = False[source]
FontBakeryCondition fontbakery.profiles.shared_conditions.vtt_talk_sources[source][source]

Return the tags of VTT source tables found in a font.

force = False[source]
return[source]