successfully mixing in a normal font + the emoji font for some runes only through a myriad of weird hacks.

This commit is contained in:
fiatjaf
2023-12-26 22:08:24 -03:00
parent 9be417fc7c
commit 1022fb76fa
3 changed files with 140 additions and 62 deletions

View File

@@ -5,7 +5,6 @@ import (
"context"
"encoding/json"
"fmt"
"hash/maphash"
"html"
"html/template"
"math/rand"
@@ -13,7 +12,6 @@ import (
"regexp"
"strings"
"time"
"unsafe"
"github.com/microcosm-cc/bluemonday"
"golang.org/x/exp/slices"
@@ -529,7 +527,3 @@ func clamp(val, low, high int) int {
}
return val
}
func pointerHasher[V any](_ maphash.Seed, k *V) uint64 {
return uint64(uintptr(unsafe.Pointer(k)))
}