mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* net-current-v30plus-md.md * net-current-v40plus-md.md * tla2sharptla-ui-md.md * tla2sharptla-uiautomation-md.md * tla2sharptla-winclient-md.md * tla2sharptla-xaml-md.md * tlasharptla-ui-md.md * tlasharptla-uiautomation-md.md * tlasharptla-winclient-md.md * tlasharptla-xaml-md.md * fix warnings
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
---
|
|
title: "Draw Text Using Glyphs"
|
|
ms.date: "03/30/2017"
|
|
helpviewer_keywords:
|
|
- "text [WPF], drawing with Glyphs objects"
|
|
- "Glyphs objects [WPF], drawing text"
|
|
- "typography [WPF], Glyphs objects"
|
|
ms.assetid: 587ab17e-a419-4ad5-b6da-8933a8e83d97
|
|
---
|
|
# Draw Text Using Glyphs
|
|
This topic explains how to use the low-level <xref:System.Windows.Documents.Glyphs> object to display text in Extensible Application Markup Language (XAML).
|
|
|
|
## Example
|
|
The following examples show how to define properties for a <xref:System.Windows.Documents.Glyphs> object in XAML. The examples assume that the Arial, Courier New, and Times New Roman fonts are installed in the C:\WINDOWS\Fonts folder on the local computer.
|
|
|
|
[!code-xaml[GlyphsOvwSample1#1](~/samples/snippets/csharp/VS_Snippets_Wpf/GlyphsOvwSample1/CS/default.xaml#1)]
|
|
|
|
This example shows how to define other properties of <xref:System.Windows.Documents.Glyphs> objects in XAML.
|
|
|
|
[!code-xaml[GlyphsOvwSamp2#1](~/samples/snippets/csharp/VS_Snippets_Wpf/GlyphsOvwSamp2/CS/default.xaml#1)]
|
|
|
|
## See also
|
|
|
|
- [Typography in WPF](typography-in-wpf.md)
|