You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
We may have a bunch of preview tools. Let us start with a font preview panel. It is for creating show/set rules interactively about text elements with more preview feature.
The font preview panel may not be useful for experienced typst users, but may be intuitive and greatly help those users who don't know font things in typst at all.
I have made an interface design in typst:
It has copy buttons. Or it is also possible to insert into editor directly (need editor support).
The copy content is:
It can show effect of font settings with some typst script:
It can set font size in hao unit (字号). Some other size system is reasonable, such as font size used by material design.
PS: I think it is less useful that font preview, and we can have another set of show rules about font sizes individually.
It has a font filter, which could filter fonts by features.
languages
Notably, we can have Math Language for typst's technique writing. Some good default dummy preview text is also available
Good math font for typst example:
Bad math font for typst example:
#box(width: 100%, fill: luma(240), inset: 5pt, {
(
src-button[copy as | show rule],
src-button[set rule],
src-button[font args],
src-button[size args],
).join(h(0.5em))
v(-0.5em)
```typ #show math.equation: set text(font: ("Linux Libertine")) ```
})
#rect(width: 100%, inset: 1em, radius: 2pt)[
#showmath.equation: settext(font: ("Linux Libertine"))
$ "Test goodness of that font:" lr((integral x dif x)) $
]
styles
filter it by styles, such as whether it is a monospace font or has a decorative stroke with sans-serif.
It can select multiple fonts at the same time. Also show list of font by names and in corresponding font.
Notably, it can also pick up more font paths for previewing by dialog box.
No, it is painted in typst an this issue is for attracting people for discussion. Also I will be happy if there is a new contributor here to implement a font preview panel, since it is not quite hart to implement a frontend for font previewing.
We may not have to preview something. For example, font scale doesn't quite need for preview, since typst has powerful scripting and packages. Some package may provide a hao function to help specify font size in hao, let font-size = hao("小初" or "一号" or "五号").
Instead, we may need:
some typst tips in panel: so that we may help users that aren't familiar with font things at all.
Pros: observed that most people asked questions about font configuring, and font preview panel is for them. It is a so-called interactive guidance.
text for previewing: since we may want to test whether some math font works well in typst
Pros: font preview may provides some good dummy text for math font previewing
font filter: to quick locate the fonts meeting condition, e.g. Chinese fonts or math fonts.
Pros: may be useful for looking for some fonts quickly
font previewing: to take a glance at all of rendered result in that fonts.
Pros: it shows result of all fonts, so that you don't have to try fonts one by one.
These features are useful so that users may bring more access to the font preview panel, so that we don't ask "why do we need it?".
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We may have a bunch of preview tools. Let us start with a font preview panel. It is for creating show/set rules interactively about text elements with more preview feature.
The font preview panel may not be useful for experienced typst users, but may be intuitive and greatly help those users who don't know font things in typst at all.
I have made an interface design in typst:
It has copy buttons. Or it is also possible to insert into editor directly (need editor support).
The copy content is:
It can show effect of font settings with some typst script:
It can set font size in hao unit (字号). Some other size system is reasonable, such as font size used by material design.
PS: I think it is less useful that font preview, and we can have another set of show rules about font sizes individually.
It has a font filter, which could filter fonts by features.
languages
Notably, we can have
Math
Language for typst's technique writing. Some good default dummy preview text is also availableGood math font for typst example:
Bad math font for typst example:
styles
filter it by styles, such as whether it is a monospace font or has a decorative stroke with sans-serif.
It can select multiple fonts at the same time. Also show list of font by names and in corresponding font.
Notably, it can also pick up more font paths for previewing by dialog box.
Source code of interface design:
The text was updated successfully, but these errors were encountered: