Found a way to make the code a bit simpler
add tests and fixed a bug of TextBlock::SetFontSize