Fixed signed/unsigned warnings in Text.cpp