Skip to content

When use grid with font awesome package, the output is weird #2578

@tomowang

Description

@tomowang

Description

fa-icon("\u{f445}") and fa-chess-queen() works fine, but not fa-icon("chess-queen"),
while fa-icon("chess-queen") works fine out of grid layout.

Sample code

#import "@preview/fontawesome:0.1.0": *
#grid(
  columns: auto,
  rows: auto,
  column-gutter: 1em,
  row-gutter: 1em,
  fa-icon("\u{f445}"),  // works
  fa-chess-queen(),  // works
  fa-icon("chess-queen"),  // not work
  fa-icon("chess-queen", fa-set: "Free Solid"),  // not work
)

#fa-icon("chess-queen")  // works

The output of above code is like:

image

I now use fa-icon("\u{f445}") for a workaround.

This issue seems to be similar with duskmoon314/typst-fontawesome#2

Reproduction URL

https://typst.app/project/r4eYUzsDig3IrjArCX_02R

Operating system

Web app, macOS

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayoutRelated to layout, positioning, etc.needs-investigationMore investigation is necessary.textText layout, shaping, internationalization, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions