Home
C# / C Sharp
2D Graphics
Class Interface
Collections Data Structure
Components
Data Types
Database ADO.net
Date Time
Design Patterns
Development Class
Event
File Stream
Generics
GUI Windows Form
Internationalization I18N
Language Basics
LINQ
Network
Office
Reflection
Regular Expressions
Security
Services Event
Thread
Web Services
Windows
Windows Presentation Foundation
XML
XML LINQ
Font Unit Metrics « 2D Graphics « C# / C Sharp
C# / C Sharp
2D Graphics
Font Unit Metrics
1.
Get font cell ascent, descent, LineSpacing and EmHeight
2.
Calculate font unit metrics from the font family
3.
Calculate GraphicsUnit metrics from the font
4.
Draw a line for the ascent, descent, baseline, textOrigin
5.
Derive surrounding Rectangle from String
6.
Measure Font height and draw surrounding Rectangle