text rendering pulled out from refill-method