Added sample.
Added codes to measure text size.