AzurIce / AzurIce/ranim

TypstItem

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
647
Forks
37
Avg merge
6h 12m
Merged PRs (30d)
17

Description

Based on `Group`.
The following two TypstItem should have same height (but currently the `Group::from_svg` does not):

```typst
#text(50pt, font: "LXGW Bright")[ranim v0.1.0]
```

```typst
#text(50pt, font: "LXGW Bright", fill: orange)[alpha]
```

Currently the workaround is create a dumb group of vitem contains all characters:

```typst
#text(50pt, font: "LXGW Bright")[ranim v0.1.0]
#text(50pt, font: "LXGW Bright", fill: orange)[alpha]
```

Then use the position data from this group (for example by `get_bounding_box`) to correct two true groups.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.