m

materially

@preview

Google Material Symbols Library

v0.1.0
Apache-2.0

Package Information

Last Updated
Minimum Typst Version
0.15.0
Categories
text

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/materially:0.1.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/materially:0.1.0": *

Version History

0.1.00.15.0
e6ae54f616f6...

Materially is a Typst package that enables the use of Google Material Symbols.

Example

demo.typ renders to:

Admonition demo showcasing Materially

Google Material Symbols

License

A specific version of Google Material Symbols is redistributed with this package in variablefont under the Apache-2.0 license. This is done so that the font matches the codepoints. Not sure how often they change.

Installation

The .ttf fonts from the variablefont subfolder need to be installed in your OS for this package to work.

Usage

  1. Import the package

    #import "@preview/materially:0.1.0" as materially
    
  2. Initialize one of three fonts (Outlined, Sharp, or Rounded).

    #let symbol = materially.init() // Default style is "Outlined"
    // #let gms = materially.init(style:"Sharp")
    // #let gms = materially.init(style:"Rounded")
    
  3. Optionally, set a size and weight (Yes, variable weight fonts work. Hooray!)

    #set text(weight: 600)
    
  4. Use the symbol, by name (after finding it in the online search and copying the Icon Name)

    #symbol("menu")
    

Design

The init methods prevent the codepoints file from having to be reread every time a symbol is used.