Skip to content

Instantly share code, notes, and snippets.

@rcombs
Created November 4, 2014 03:27
Show Gist options
  • Save rcombs/904e423a3d343e76ed0b to your computer and use it in GitHub Desktop.
Save rcombs/904e423a3d343e76ed0b to your computer and use it in GitHub Desktop.
ASSv5 Font Families

Font Families

Format:

Family: FamilyName,PSName,Weight,Bold,Italic

Example:

Family: Helvetica,Helvetica,400,-,-
Family: Helvetica,Helvetica-Oblique,400,-,+
Family: Helvetica,Helvetica-Light,300,-,-
Family: Helvetica,Helvetica-LightOblique,300,-,+
Family: Helvetica,Helvetica-Bold,700,+,-
Family: Helvetica,Helvetica-BoldOblique,700,+,+
{\fn(Helvetica)}Helvetica; {\b+}Helvetica-Bold {\i+}Helvetica-BoldOblique {\b(300)}Helvetica-LightOblique {\b(500)}Helvetica-Oblique (fauxed from 400 to 500)

If there's no Family, then \fn is a PostScript name. If there's no italic variant in the family for a weight (or there's no family at all), it's fauxed. If there's no weight in the family matching the requested one (or there's no family at all), it's fauxed from the next-lowest one. If {\b+} is used and there's no "bold" explicitly set in the family, it's the same as \b(700).

This means it's as easy as possible to use the right variant (assuming the authoring software generates the Family lines correctly), while fauxing is still easy (but will only happen if it actually needs to).

@pigoz
Copy link

pigoz commented Nov 4, 2014

So in the Styles section you just use the Family name, correct? BTW in the end this is kinda similar to CSS @font-face with the only difference that styles (bold, italic, etc) are defined on the family item directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment