Hi. Sorry for the specific post title. I am having a problem with a custom font I'm trying. I've tried a few things, and each has a different (wrong) result, so I'll try to explain what I've done.

I am trying to get a pixel art bitmap font I made working. the first thing I did was get it as a .fnt file, but godot seems to be struggling with that, as it does not show up when I add the font to the button I want it on.

The second was, following a video (will post link below) to try to make a bitmap font within godot, from an image. I attached a script to get this font working. this one gives a weird bug: On the first button the script is attached to, it shows only the first non null ascii character (as opposed to the buttons preestablished text). On the second button the script is attached to, it shows nothing.

Link to the video:

the code I have on my button script is this:
`
extends Control

var bitmapfont = BitmapFont

func _ready():
bitmapfont = BitmapFont.new()
bitmapfont.add_texture(preload("res://GUI/Fonts/smallfontinasciiorder.png"))
bitmapfont.height = 12
var startC: int = ord(" ")
var endC: int = startC + 100
#bitmapfont.create_from_fnt("res://fonts/pixelfont1modtry.fnt")

for i in range(startC, endC):
	var c = i - 32 if i > 31 && i < 132 else 0
	#print (str(i, " = ", char (i), "->", c))
	bitmapfont.add_char(i, 0, Rect2(c*8, 0, 8, 12), Vector2(0,0), 6)
theme = Theme.new()
theme.default_font = bitmapfont `

(Please forgive me if I inserted the code wrong, its been a while since I used the forums)
I realize its probably not a super important thing to get the font working perfectly, as godot has built in fonts that work, but I would like to be able to use a bitmap font, so if anyone is able to help, I would appreciate it.

TIA.