convert several text_ calls to fast function pointers