Need help with Deke's crafting program (TypeError)

I'm running into an issue with Deke's crafting script (Can be found here) that I've never run into before when using this script. Whenever I use the $scene = Scene_Craft.new to try and enter the crafting window, I get an error that says Script 'Scene_Craft' line 402: TypeError occurred. No implicit conversion from nil to integer.

I tried replacing the script of this I took from another project of mine (where it works perfectly fine) with the original text (from the website, and it still gave me the error, which involves the line "@confirm_window.contents.font.size = $fontsize.is_a?(Integer) ? $fontsize : $defaultfontsize"

Please help.
God I need to stop asking for help and later finding a solution, but I guess it might help someone in the future.

Adding
Code:
  # Font used in windows
$defaultfonttype = $fontface = $fontname = Font.default_name = "Tahoma" #any supported font name will work

# Font size used
$defaultfontsize = $fontsize = Font.default_size =  22
fixed the issue. Someone posted this fix and it works beautifully at fixing my issue.
Though I have another question (two, actually) you lovely people will probably be able to help me with that I can't figure out at the moment.
When I exit the crafting menu it goes to the regular menu, where you access items and the like. I want to know how to make it go back to the map instead since the crafting system will only be accessible from the map and it makes no sense to go into the menu. From reading the code I can infer that doing so is supported, but I can't figure out how.

Second question: This also seems to be supported by the code, but again I don't know how - forgetting a crafting recipe. I'm guessing it's the opposite from "learning" a crafting recipe, but I'd have to do testing - which I can, but I do want it here for the record these are two other scripting questions I have.

If I figure something out, I'll post it here, but I'm betting that question one will be more difficult for me to figure out on my own than question two.

Edit: Figured out the answer to question 2: to learn a recipe, use $game_party.learn_recipe([Item ID,Item Type ID]). For unlearning it, simply replace learn with forget.
Still have no idea about redirecting past the menu and into the map, though.
Double-post notice: @AveyondFan

Just edit your first post and add the new info, instead of making 2 posts in a row.

You can do any ONE of the following (make sure you only do one):

Change this in the script
Code:
    if @return_scene == "menu"
      $scene = Scene_Menu.new(0)
    else
      $scene = Scene_Map.new
    end

to this
Code:
$scene = Scene_Map.new


OR change this in the script
Code:
def initialize(craft_index=0, return_scene = "menu")

to this
Code:
def initialize(craft_index=0, return_scene = "map")


OR (probably the best solution as you're not changing the script), when you enter the crafting scene, use
Code:
$scene=Scene_Craft.new(0, "map")

instead of
Code:
$scene=Scene_Craft.new



You don't actually need to have "map" in those last two methods - it would be enough to just have "" with nothing specified - it just needs to be something that is not "menu"

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-dekes-crafting-program-typeerror.137076/