public package

This commit is contained in:
2025-08-24 01:56:58 +10:00
parent 22a3aa98a5
commit 56c76d8202
2 changed files with 2 additions and 2 deletions

22
mapper_test.go Normal file
View File

@@ -0,0 +1,22 @@
package mapper
import (
"fmt"
"os"
"testing"
)
func TestGlyphOutlineMapper_MappingRune(t *testing.T) {
readFontData, _ := os.ReadFile("read.ttf")
miLantingFontData, _ := os.ReadFile("MI LANTING.ttf")
mapper, err := NewGlyphOutlineMapper(readFontData, miLantingFontData)
if err != nil {
t.Fatal(err)
}
mapper.SetConcurrent(50)
specialRune, standardRune, ok := mapper.MappingRune(0xE000)
if !ok {
t.Log("empty font data")
}
fmt.Printf("specialRune: %s => standardRune: %s\n", string(specialRune), string(standardRune))
}