mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:30:45 +00:00
Default to Arial for names; give the Arial atlas full glyph coverage
Regenerate arial-atlas.{png,json} from a full Arimo TTF (latin + latin-ext) covering the same 32-383 range as overpass (319 glyphs, no Latin-Extended gaps), and make Arial the default name font (name.classicFont defaults true). Overpass stays for WorldTextPass, the structure-level MSDF option, and as the alternate name font.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+2320
-445
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 423 KiB After Width: | Height: | Size: 711 KiB |
@@ -536,7 +536,7 @@ export class GraphicsSettingsModal extends LitElement implements Controller {
|
||||
}
|
||||
|
||||
private currentClassicNames(): boolean {
|
||||
return this.userSettings.graphicsOverrides().name?.classicFont ?? false;
|
||||
return this.userSettings.graphicsOverrides().name?.classicFont ?? true;
|
||||
}
|
||||
|
||||
private onToggleClassicNames() {
|
||||
|
||||
@@ -28,8 +28,8 @@ export function applyGraphicsOverrides(
|
||||
if (overrides.structure?.iconSize !== undefined) {
|
||||
settings.structure.iconSize = overrides.structure.iconSize;
|
||||
}
|
||||
// Classic names: Arial bitmap font for names/troops (default false = MSDF).
|
||||
settings.name.classicFont = overrides.name?.classicFont ?? false;
|
||||
// Name font: Arial (Arimo) MSDF atlas by default; false = overpass.
|
||||
settings.name.classicFont = overrides.name?.classicFont ?? true;
|
||||
if (overrides.structure?.classicIcons ?? true) {
|
||||
// Classic look (default): lighter player-colored shape behind a darkened
|
||||
// player-colored icon glyph (matching the old canvas renderer's
|
||||
|
||||
@@ -265,7 +265,7 @@ export interface RenderSettings {
|
||||
hoverGlowWidth: number;
|
||||
/** Peak opacity of the hover glow (0 disables it). */
|
||||
hoverGlowAlpha: number;
|
||||
/** true = Arial bitmap font for names/troops, false = overpass MSDF. */
|
||||
/** Names/troops font: true = Arial (Arimo) MSDF, false = overpass MSDF. */
|
||||
classicFont: boolean;
|
||||
};
|
||||
fx: {
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
"hoverFadeAlpha": 0.5,
|
||||
"hoverGlowWidth": 5,
|
||||
"hoverGlowAlpha": 0.75,
|
||||
"classicFont": false
|
||||
"classicFont": true
|
||||
},
|
||||
"fx": {
|
||||
"shockwaveRingWidth": 0.04,
|
||||
|
||||
Reference in New Issue
Block a user