feat(FontSampler): slight font style tweaks for font name
This commit is contained in:
@@ -36,12 +36,7 @@ interface Props {
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
let {
|
||||
font,
|
||||
text = $bindable(),
|
||||
index = 0,
|
||||
...restProps
|
||||
}: Props = $props();
|
||||
let { font, text = $bindable(), index = 0, ...restProps }: Props = $props();
|
||||
|
||||
const fontWeight = $derived(controlManager.weight);
|
||||
const fontSize = $derived(controlManager.renderedSize);
|
||||
@@ -66,9 +61,9 @@ const letterSpacing = $derived(controlManager.spacing);
|
||||
typeface_{String(index).padStart(3, '0')}
|
||||
</Footnote>
|
||||
<div class="w-px h-2 sm:h-2.5 bg-border-subtle"></div>
|
||||
<Footnote class="tracking-[0.15em] font-bold text-foreground">
|
||||
<div class="font-bold text-foreground">
|
||||
{font.name}
|
||||
</Footnote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
@@ -86,11 +81,11 @@ const letterSpacing = $derived(controlManager.spacing);
|
||||
<div class="p-4 sm:p-5 md:p-8 relative z-10">
|
||||
<FontApplicator {font} weight={fontWeight}>
|
||||
<ContentEditable
|
||||
bind:text={text}
|
||||
bind:text
|
||||
{...restProps}
|
||||
fontSize={fontSize}
|
||||
lineHeight={lineHeight}
|
||||
letterSpacing={letterSpacing}
|
||||
{fontSize}
|
||||
{lineHeight}
|
||||
{letterSpacing}
|
||||
/>
|
||||
</FontApplicator>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user