https://github.com/fdwr/textlayoutsampler
Utility to display text via multiple Windows API's simultaneously (D2D, DWrite, GDI, GDI+).
https://github.com/fdwr/textlayoutsampler
direct2d directwrite typography
Last synced: about 1 month ago
JSON representation
Utility to display text via multiple Windows API's simultaneously (D2D, DWrite, GDI, GDI+).
- Host: GitHub
- URL: https://github.com/fdwr/textlayoutsampler
- Owner: fdwr
- License: mit
- Created: 2016-10-21T06:24:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-11-05T03:44:31.000Z (5 months ago)
- Last Synced: 2025-11-05T05:33:40.899Z (5 months ago)
- Topics: direct2d, directwrite, typography
- Language: C++
- Homepage:
- Size: 1.4 MB
- Stars: 45
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TextLayoutSampler
This utility displays text drawn via multiple Windows API's simultaneously, to compare differences in rendering, font selection, and glyph shaping.

## Supports:
- DirectWrite, Direct2D, GDI, GDI+ API's
- Various attributes: weight, width, slope, family, direction, locale, font size, text color, back color, rotation, pixel zoom...
- Arbitrary number of text objects with different attributes.
- Requires Windows 7+. Certain features like Direct2D SVG rendering requires Windows 10 RS4+.
## Building:
- Open TextLayoutSampler.sln in Visual Studio Professional/Community 2019 16.9.3. VS 2017 is too old, as it lacks template constraints.
- If C++ modules crash the compiler, use normal header files via USE_CPP_MODULES=0 in the project properties preprocessor definitions.