[quote user="Zhen Li"]Could you give me some hints why it crashed?[/quote]
Probably Possibly an invalid font number. Where do you get the value of IthSystemFont?
You can't assume that font numbers form a contiguous set of ordinal numbers. Ask yourself why you need a font number, when a font name is usually more useful.