feat: self-host all Habbo fonts via proxy route /api/font/[style]/[text]
This commit is contained in:
1 parent
f3367e9b7b
commit
d5ec7ba0f8
3 files changed
+94
-1
No files matched your search
@@ -265,5 +265,5 @@ export const HABBO_FONT_GROUPS: HabboFontGroup[] = [
|
||||
|
||||
export function buildFontUrl(styleName: string, text: string): string {
|
||||
const t = text.toLowerCase().replace(/\s/g, "+");
|
||||
return `https://habbofont.net/font/${styleName}/${t}.gif`;
|
||||
return `/api/font/${styleName}/${t}`;
|
||||
}
|
||||
Reference in new issue
Block a user