fix variable declaration orders (thank you msvc)
add support for label styles in legend rendering