hk-modding/api

CanvasUtil Fonts

homothetyhk opened this issue · 0 comments

CanvasUtil.CreateFonts is not always called, so the CanvasUtil.TrajanBold and CanvasUtil.TrajanNormal fields are not always set. As a result, the second overload of CanvasUtil.CreateTextPanel fails.

Suggested fix: replace CanvasUtil.TrajanBold and CanvasUtil.TrajanNormal with properties that use CanvasUtil.GetFont.