This commit is contained in:
ajvpot
2025-09-13 03:31:30 +02:00
parent 8ac7d5eece
commit 3ade624a51
4 changed files with 5 additions and 7 deletions

View File

@@ -32,10 +32,8 @@ ENV NODE_ENV production
# Install fonts for Sharp text rendering
RUN apk add --no-cache \
fontconfig \
ttf-dejavu \
ttf-liberation \
ttf-opensans \
font-noto \
font-noto-emoji \
&& fc-cache -f
RUN addgroup --system --gid 1001 nodejs

View File

@@ -179,7 +179,7 @@ export function formatMeshcoreMessageForDiscord(
const content = `${text}\n-# _Heard ${heardCount} times by [MeshExplorer](https://map.w0z.is/messages)_`;
// Generate profile picture URL using the new API
const profilePictureUrl = `https://map.w0z.is/api/meshcore/profilepicture.png?name=${encodeURIComponent(sender)}`;
const profilePictureUrl = `https://map.w0z.is/api/meshcore/profilepicture.png?name=${encodeURIComponent(sender)}&v=2`;
return {
username: sender,

View File

@@ -52,7 +52,7 @@ async function generateProfilePicturePNG(backgroundColor: string, label: string)
y="50%"
text-anchor="middle"
dominant-baseline="central"
font-family="DejaVu Sans, Liberation Sans, Arial, sans-serif"
font-family="Noto Sans, Noto Color Emoji, sans-serif"
font-size="${fontSize}"
fill="white"
>${escapeXml(label)}</text>

View File

@@ -4,8 +4,8 @@
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
--font-sans: var(--font-noto-sans), "Noto Sans", sans-serif;
--font-mono: var(--font-noto-sans), "Noto Sans", sans-serif;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);