Set all attributes at the same time otherwise old ones get lost

After trying this with a custom font set I realized that calling `-setAttributes:range:` removes any existing attributes.