fix: restore word-level proxy for Habbo fonts, pre-cache all 175 fonts for 'Atom'
This commit is contained in:
@@ -263,7 +263,9 @@ export const HABBO_FONT_GROUPS: HabboFontGroup[] = [
|
||||
},
|
||||
];
|
||||
|
||||
export function charUrl(styleName: string, char: string): string {
|
||||
return `/assets/fonts/chars/${styleName}/${char}.gif`;
|
||||
export function buildFontUrl(styleName: string, text: string): string {
|
||||
const t = text.toLowerCase().replace(/\s/g, "+");
|
||||
return `/api/font/${styleName}/${t}`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user