Unable to replace Doom Smallfont.

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Unable to replace Doom Smallfont.

Post by Amuscaria »

I'm having trouble replacing Doom's Smallfont with my own characters. According to the Wiki, all I need to do is to define a font named "SMALLFNT" and it would replace the Smallfont.

I've defined it as the following:

Code: Select all

SMALLFNT
{
	A HFSF01
	B HFSF02
	C HFSF03
	D HFSF04
	E HFSF05
	F HFSF06
	G HFSF07
	H HFSF08
	I HFSF09
	J HFSF10
	K HFSF11
	L HFSF12
	M HFSF13
	N HFSF14
	O HFSF15
	P HFSF16
	Q HFSF17
	R HFSF18
	S HFSF19
	T HFSF20
	U HFSF21
	V HFSF22
	W HFSF23
	X HFSF24
	Y HFSF25
	Z HFSF26
	a HFSF01
	b HFSF02
	c HFSF03
	d HFSF04
	e HFSF05
	f HFSF06
	g HFSF07
	h HFSF08
	i HFSF09
	j HFSF10
	k HFSF11
	l HFSF12
	m HFSF13
	n HFSF14
	o HFSF15
	p HFSF16
	q HFSF17
	r HFSF18
	s HFSF19
	t HFSF20
	u HFSF21
	v HFSF22
	w HFSF23
	x HFSF24
	y HFSF25
	z HFSF26
	: HFSF27
	! HFSF28
	% HFSF29
	. HFSF30
	; HFSF31
	, HFSF32
	< HFSF33
	> HFSF34
	# HFSF35
	- HFSF36
	? HFSF37
	$ HFSF38
	^ HFSF39
	@ HFSF40
	~ HFSF41
	/ HFSF42
	\ HFSF43
	[ HFSF44
	] HFSF45
	( HFSF46
	) HFSF47
	//{ HFSF48
	//} HFSF49
	| HFSF50
	& HFSF51
	- HFSF52
	+ HFSF53
	* HFSF54
	= HFSF55
	_ HFSF56
	' HFSF57
	` HFSF57
	" HFSF58
	DONTTRANSLATE
}
It doesn't work. The game still uses the default Smallfont from Doom. I'ved tried calling it SMALLFONT, SMALLFONT_DOOM and no luck. What am I doing wrong here?

PS: I'm not sure how I could replaced the curly brackets. just calling them "{" and "}" doesn't work as it causes an error on startup.[/s]

EDIT: Problem Fixed by following WW's Cola3 Template method. :)

Return to “Assets (and other stuff)”