fontisan 0.4.53 → 0.4.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +17 -1
- data/TODO.bug-fixes/README.md +1 -1
- data/docs/.gitignore +4 -0
- data/docs/astro.config.mjs +16 -0
- data/docs/package-lock.json +4031 -1506
- data/docs/package.json +12 -5
- data/docs/scripts/sitemap-base.mjs +81 -0
- data/docs/src/content.config.ts +32 -0
- data/docs/{.vitepress/config.ts → src/data/sidebar.ts} +235 -146
- data/docs/src/layouts/Site.astro +320 -0
- data/docs/src/pages/404.astro +14 -0
- data/docs/src/pages/api/[...slug].astro +22 -0
- data/docs/src/pages/api/index.astro +12 -0
- data/docs/src/pages/cli/[...slug].astro +22 -0
- data/docs/src/pages/cli/index.astro +12 -0
- data/docs/src/pages/guide/[...slug].astro +22 -0
- data/docs/src/pages/guide/index.astro +12 -0
- data/docs/src/pages/history/[...slug].astro +22 -0
- data/docs/src/pages/history/index.astro +24 -0
- data/docs/src/pages/index.astro +234 -0
- data/docs/src/pages/root/[...slug].astro +20 -0
- data/docs/src/styles/site.css +88 -0
- data/ext/fontisan_cdylib/Cargo.lock +17 -1
- data/ext/fontisan_cdylib/Cargo.toml +1 -1
- data/ext/fontisan_native/Cargo.toml +1 -1
- data/lib/fontisan/byte_ops.rb +2 -2
- data/lib/fontisan/converters/collection_converter.rb +4 -0
- data/lib/fontisan/engine.rb +14 -12
- data/lib/fontisan/native.rb +1 -1
- data/lib/fontisan/version.rb +1 -1
- data/lib/fontisan/woff2/glyf_loca_reconstruct.rb +4 -0
- metadata +18 -10
- data/docs/.vitepress/theme/components/ApiMethod.vue +0 -127
- data/docs/.vitepress/theme/components/Badge.vue +0 -51
- data/docs/.vitepress/theme/components/FeatureComparison.vue +0 -87
- data/docs/.vitepress/theme/components/HeroCodeBlock.vue +0 -98
- data/docs/.vitepress/theme/components/WithinHero.vue +0 -30
- data/docs/.vitepress/theme/index.ts +0 -22
- data/docs/.vitepress/theme/style.css +0 -628
- data/docs/scripts/post-build.mjs +0 -81
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span :class="['badge', type]">
|
|
3
|
-
<slot />
|
|
4
|
-
</span>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
defineProps<{
|
|
9
|
-
type?: "tip" | "warning" | "danger" | "info" | "pure-ruby";
|
|
10
|
-
}>();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style scoped>
|
|
14
|
-
.badge {
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
padding: 0.125rem 0.5rem;
|
|
18
|
-
border-radius: 9999px;
|
|
19
|
-
font-size: 0.75rem;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
line-height: 1.25rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.tip {
|
|
25
|
-
background-color: var(--vp-c-brand-soft);
|
|
26
|
-
color: var(--vp-c-brand-1);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.warning {
|
|
30
|
-
background-color: rgba(255, 197, 61, 0.14);
|
|
31
|
-
color: var(--vp-c-warning-1);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.danger {
|
|
35
|
-
background-color: rgba(244, 63, 94, 0.14);
|
|
36
|
-
color: var(--vp-c-danger-1);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.info {
|
|
40
|
-
background-color: rgba(96, 165, 250, 0.14);
|
|
41
|
-
color: var(--vp-c-info-1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.pure-ruby {
|
|
45
|
-
background: linear-gradient(135deg, var(--fontist-rose), #d4718a);
|
|
46
|
-
color: white;
|
|
47
|
-
font-weight: 700;
|
|
48
|
-
text-transform: uppercase;
|
|
49
|
-
letter-spacing: 0.05em;
|
|
50
|
-
}
|
|
51
|
-
</style>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<table class="feature-comparison">
|
|
3
|
-
<thead>
|
|
4
|
-
<tr>
|
|
5
|
-
<th>Feature</th>
|
|
6
|
-
<th v-for="tool in tools" :key="tool">{{ tool }}</th>
|
|
7
|
-
</tr>
|
|
8
|
-
</thead>
|
|
9
|
-
<tbody>
|
|
10
|
-
<tr v-for="feature in features" :key="feature.name">
|
|
11
|
-
<td class="feature-name">{{ feature.name }}</td>
|
|
12
|
-
<td
|
|
13
|
-
v-for="(tool, index) in tools"
|
|
14
|
-
:key="tool"
|
|
15
|
-
:class="getSupportClass(feature.support[index])"
|
|
16
|
-
>
|
|
17
|
-
<span class="support-icon">{{ getSupportIcon(feature.support[index]) }}</span>
|
|
18
|
-
<span v-if="feature.notes?.[index]" class="note">{{ feature.notes[index] }}</span>
|
|
19
|
-
</td>
|
|
20
|
-
</tr>
|
|
21
|
-
</tbody>
|
|
22
|
-
</table>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script setup lang="ts">
|
|
26
|
-
interface Feature {
|
|
27
|
-
name: string;
|
|
28
|
-
support: boolean[];
|
|
29
|
-
notes?: string[];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
defineProps<{
|
|
33
|
-
tools: string[];
|
|
34
|
-
features: Feature[];
|
|
35
|
-
}>();
|
|
36
|
-
|
|
37
|
-
function getSupportIcon(supported: boolean): string {
|
|
38
|
-
return supported ? "✓" : "✗";
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function getSupportClass(supported: boolean): string {
|
|
42
|
-
return supported ? "supported" : "not-supported";
|
|
43
|
-
}
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<style scoped>
|
|
47
|
-
.feature-comparison {
|
|
48
|
-
width: 100%;
|
|
49
|
-
border-collapse: collapse;
|
|
50
|
-
margin: 1rem 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.feature-comparison th,
|
|
54
|
-
.feature-comparison td {
|
|
55
|
-
padding: 0.75rem 1rem;
|
|
56
|
-
text-align: left;
|
|
57
|
-
border-bottom: 1px solid var(--vp-c-divider);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.feature-comparison th {
|
|
61
|
-
background: var(--vp-c-bg-soft);
|
|
62
|
-
font-weight: 600;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.feature-name {
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.supported {
|
|
70
|
-
color: var(--vp-c-green-1);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.not-supported {
|
|
74
|
-
color: var(--vp-c-red-1);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.support-icon {
|
|
78
|
-
font-weight: bold;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.note {
|
|
82
|
-
display: block;
|
|
83
|
-
font-size: 0.85rem;
|
|
84
|
-
color: var(--vp-c-text-2);
|
|
85
|
-
margin-top: 0.25rem;
|
|
86
|
-
}
|
|
87
|
-
</style>
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
defineProps({
|
|
3
|
-
title: {
|
|
4
|
-
type: String,
|
|
5
|
-
default: 'Terminal'
|
|
6
|
-
}
|
|
7
|
-
})
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div class="hero-code-block">
|
|
12
|
-
<div class="code-header">
|
|
13
|
-
<span class="dot"></span>
|
|
14
|
-
<span class="dot"></span>
|
|
15
|
-
<span class="dot"></span>
|
|
16
|
-
<span class="code-title">{{ title }}</span>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="code-content"><slot /></div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<style scoped>
|
|
23
|
-
.hero-code-block {
|
|
24
|
-
background: var(--vp-c-bg-soft);
|
|
25
|
-
border: 1px solid var(--vp-c-divider);
|
|
26
|
-
border-radius: 12px;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
29
|
-
max-width: 550px;
|
|
30
|
-
width: 100%;
|
|
31
|
-
font-size: 0.85rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@media (max-width: 768px) {
|
|
35
|
-
.hero-code-block {
|
|
36
|
-
max-width: 100%;
|
|
37
|
-
font-size: 0.8rem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.code-header {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
gap: 0.5rem;
|
|
45
|
-
padding: 0.75rem 1rem;
|
|
46
|
-
background: var(--vp-c-bg-alt);
|
|
47
|
-
border-bottom: 1px solid var(--vp-c-divider);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dot {
|
|
51
|
-
width: 12px;
|
|
52
|
-
height: 12px;
|
|
53
|
-
border-radius: 50%;
|
|
54
|
-
flex-shrink: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.dot:nth-child(1) { background: #ff5f56; }
|
|
58
|
-
.dot:nth-child(2) { background: #ffbd2e; }
|
|
59
|
-
.dot:nth-child(3) { background: #28c840; }
|
|
60
|
-
|
|
61
|
-
.code-title {
|
|
62
|
-
margin-left: auto;
|
|
63
|
-
font-size: 0.8rem;
|
|
64
|
-
color: var(--vp-c-text-3);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.code-content {
|
|
68
|
-
margin: 0;
|
|
69
|
-
padding: 1.25rem;
|
|
70
|
-
font-family: var(--vp-font-family-mono);
|
|
71
|
-
font-size: inherit;
|
|
72
|
-
line-height: 1.7;
|
|
73
|
-
overflow-x: auto;
|
|
74
|
-
-webkit-overflow-scrolling: touch;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.code-content :deep(.line) {
|
|
78
|
-
display: block;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.code-content :deep(.prompt) {
|
|
82
|
-
color: var(--vp-c-brand-1);
|
|
83
|
-
font-weight: 500;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.code-content :deep(.success) {
|
|
87
|
-
color: #28c840;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.code-content :deep(.comment) {
|
|
91
|
-
color: var(--vp-c-text-3);
|
|
92
|
-
font-style: italic;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.code-content :deep(.cmd) {
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
}
|
|
98
|
-
</style>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ClientOnly>
|
|
3
|
-
<Teleport to=".VPHero > .container">
|
|
4
|
-
<div class="within-hero__slot-container">
|
|
5
|
-
<slot />
|
|
6
|
-
</div>
|
|
7
|
-
</Teleport>
|
|
8
|
-
</ClientOnly>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<style>
|
|
12
|
-
.within-hero__slot-container {
|
|
13
|
-
order: 2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.VPHero > .container > .main {
|
|
17
|
-
width: unset;
|
|
18
|
-
flex-shrink: unset;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.VPHero > .container {
|
|
22
|
-
gap: 32px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@media (min-width: 960px) {
|
|
26
|
-
.VPHero > .container {
|
|
27
|
-
gap: 64px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import DefaultTheme from "vitepress/theme";
|
|
2
|
-
import type { Theme } from "vitepress";
|
|
3
|
-
import "./style.css";
|
|
4
|
-
|
|
5
|
-
// Import custom components
|
|
6
|
-
import FeatureComparison from "./components/FeatureComparison.vue";
|
|
7
|
-
import Badge from "./components/Badge.vue";
|
|
8
|
-
import ApiMethod from "./components/ApiMethod.vue";
|
|
9
|
-
import HeroCodeBlock from "./components/HeroCodeBlock.vue";
|
|
10
|
-
import WithinHero from "./components/WithinHero.vue";
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
extends: DefaultTheme,
|
|
14
|
-
enhanceApp({ app }) {
|
|
15
|
-
// Register global components
|
|
16
|
-
app.component("FeatureComparison", FeatureComparison);
|
|
17
|
-
app.component("Badge", Badge);
|
|
18
|
-
app.component("ApiMethod", ApiMethod);
|
|
19
|
-
app.component("HeroCodeBlock", HeroCodeBlock);
|
|
20
|
-
app.component("WithinHero", WithinHero);
|
|
21
|
-
},
|
|
22
|
-
} satisfies Theme;
|