// Set the font options, need this for calculations
BgraOutput.Canvas.Font.Name := lbl.FontFace;
BgraOutput.Canvas.Font.Size := lbl.FontSize;
BgraOutput.Canvas.Font.color := ColorToBgra(lbl.FontColor, lbl.Alpha);
BgraOutput.FontHeight := lbl.FontSize;
BgraOutput.FontName := lbl.FontFace;
BgraOutput.FontStyle := [];
if lbl.Bold then BgraOutput.FontStyle := BgraOutput.FontStyle + [fsBold];
if lbl.Italic then BgraOutput.FontStyle := BgraOutput.FontStyle + [fsItalic];
if lbl.Underlined then BgraOutput.FontStyle := BgraOutput.FontStyle + [fsUnderline];