fuzzybubbles
|
|
@ -120,8 +120,8 @@ var sourceCodeProSemiboldBase64 string
|
||||||
//go:embed encoded/SourceCodePro-Italic.txt
|
//go:embed encoded/SourceCodePro-Italic.txt
|
||||||
var sourceCodeProItalicBase64 string
|
var sourceCodeProItalicBase64 string
|
||||||
|
|
||||||
//go:embed encoded/ArchitectsDaughter-Regular.txt
|
//go:embed encoded/FuzzyBubbles-Regular.txt
|
||||||
var architectsDaughterRegularBase64 string
|
var fuzzyBubblesRegularBase64 string
|
||||||
|
|
||||||
//go:embed encoded/FuzzyBubbles-Bold.txt
|
//go:embed encoded/FuzzyBubbles-Bold.txt
|
||||||
var fuzzyBubblesBoldBase64 string
|
var fuzzyBubblesBoldBase64 string
|
||||||
|
|
@ -169,12 +169,12 @@ func init() {
|
||||||
{
|
{
|
||||||
Family: HandDrawn,
|
Family: HandDrawn,
|
||||||
Style: FONT_STYLE_REGULAR,
|
Style: FONT_STYLE_REGULAR,
|
||||||
}: architectsDaughterRegularBase64,
|
}: fuzzyBubblesRegularBase64,
|
||||||
{
|
{
|
||||||
Family: HandDrawn,
|
Family: HandDrawn,
|
||||||
Style: FONT_STYLE_ITALIC,
|
Style: FONT_STYLE_ITALIC,
|
||||||
// This font has no italic, so just reuse regular
|
// This font has no italic, so just reuse regular
|
||||||
}: architectsDaughterRegularBase64,
|
}: fuzzyBubblesRegularBase64,
|
||||||
{
|
{
|
||||||
Family: HandDrawn,
|
Family: HandDrawn,
|
||||||
Style: FONT_STYLE_BOLD,
|
Style: FONT_STYLE_BOLD,
|
||||||
|
|
@ -263,7 +263,7 @@ func init() {
|
||||||
Style: FONT_STYLE_ITALIC,
|
Style: FONT_STYLE_ITALIC,
|
||||||
}] = b
|
}] = b
|
||||||
|
|
||||||
b, err = fontFacesFS.ReadFile("ttf/ArchitectsDaughter-Regular.ttf")
|
b, err = fontFacesFS.ReadFile("ttf/FuzzyBubbles-Regular.ttf")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
d2renderers/d2fonts/encoded/FuzzyBubbles-Regular.txt
Normal file
BIN
d2renderers/d2fonts/ttf/FuzzyBubbles-Regular.ttf
Normal file
|
|
@ -41,6 +41,14 @@ func TestSketch(t *testing.T) {
|
||||||
script: `winter.snow -> summer.sun
|
script: `winter.snow -> summer.sun
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "fonts",
|
||||||
|
script: `i am bold
|
||||||
|
i am regular: |md
|
||||||
|
Accent on helpful side of your nature. Drain the moat.
|
||||||
|
|
|
||||||
|
`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "elk corners",
|
name: "elk corners",
|
||||||
engine: "elk",
|
engine: "elk",
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 130 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 76 KiB |
852
d2renderers/d2sketch/testdata/fonts/sketch.exp.svg
vendored
Normal file
|
After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 66 KiB |
576
d2renderers/d2sketch/testdata/opacity/sketch.exp.svg
vendored
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 101 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 124 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 68 KiB |
648
d2renderers/d2sketch/testdata/twitter/sketch.exp.svg
vendored
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 217 KiB |