It seems that this was just a case sensitivity issue:
titleFont.Boldweight = (short)FontBoldWeight.BOLD;
should have been:titleFont.Boldweight = (short)FontBoldWeight.Bold;