Doing things such as:
name.addStyleName("boldText");
or
name.setStyleName("boldText", true)
keeps the alignment, but it results in the style not getting recognized and displays in plain text.

Has anyone seen this or figured out a workaround? If I set the style to something different, such as changing the color to red, the addStyleName works - for some reason it just doesn't like the text to be bold.