small improvement: store font attribute only if it was changed

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>