Cubxity / typstudio

A W.I.P desktop application for a new typesetting language, typst.
GNU General Public License v3.0
611 stars 19 forks source link

Red squiggly line renders in the wrong place #17

Closed Okkonen-GitHub closed 1 year ago

Okkonen-GitHub commented 1 year ago

A follow-up to Issue#16 Environment OS: Artix Linux WM: Sway (Wayland) Resolution: 1920x1080

Steps to reproduce:

  1. cargo tauri build
  2. ./src-tauri/target/release/bundle/appimage/typstudio_0.1.0_amd64.AppImage
  3. Here is an example of a main.typ file that causes the bug
    So the error is most likely caused by having letter such as
    ö, ä, å and ü that take up more than 1 byte or something
    (öööööööööööööööööö)
    $ 4! dot.c binom(28, 4)=4! dot.c  ( 28 ! ) ERROR $
    Some random text here to show where the error goes

    image