3 Commits

Author SHA1 Message Date
1ae489cb94 change default fonts
Change them to ones that come included w/ Typst.

Closes #15, closes #9
2025-11-28 13:35:50 +01:00
df7899ee4b Merge pull request 'prevent drawing separators on starting lines of fields' (#17) from rajayonin/rivet-typst:fix-consecutive-ranges into dev
Reviewed-on: #17
Reviewed-by: Louis Heredero <louis@herdac.ch>
2025-11-28 11:37:43 +00:00
b6f2fd99b8 prevent drawing separators on starting lines of fields
On non-consecutive ranges, we were drawing the starting line _on top_ of
the separator, which lead to some visual glitches in some viewers.
2025-11-25 09:02:49 +01:00
11 changed files with 10246 additions and 9406 deletions

View File

@@ -28,9 +28,9 @@
/// - ltr-bits (bool): If true, bits are placed with the LSB on the left instead of the right
/// -> dictionary
#let config(
default-font-family: "Ubuntu Mono",
default-font-family: "DejaVu Sans Mono",
default-font-size: 15pt,
italic-font-family: "Ubuntu Mono",
italic-font-family: "Libertinus Serif",
italic-font-size: 12pt,
background: white,
text-color: black,

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 378 KiB

After

Width:  |  Height:  |  Size: 408 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 KiB

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 485 KiB

After

Width:  |  Height:  |  Size: 490 KiB

Binary file not shown.

19638
manual.pdf

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
#let config(
default-font-family: "Ubuntu Mono",
default-font-family: "DejaVu Sans Mono",
default-font-size: 15pt,
italic-font-family: "Ubuntu Mono",
italic-font-family: "Libertinus Serif",
italic-font-size: 12pt,
background: white,
text-color: black,

View File

@@ -387,8 +387,10 @@
}
let range-boundaries = ()
for r in struct.ranges.values() {
let i = to-real-i(if config.ltr-bits {r.start} else {r.end})
range-boundaries.push(i)
let start-i = to-real-i(if config.ltr-bits {r.start} else {r.end})
let end-i = to-real-i(if config.ltr-bits {r.end} else {r.start}) + 1
range-boundaries.push(start-i)
range-boundaries.push(end-i)
}
// Draw colors