Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/draw-text-using-glyphs.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.4 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
Draw Text Using Glyphs 03/30/2017
text [WPF], drawing with Glyphs objects
Glyphs objects [WPF], drawing text
typography [WPF], Glyphs objects
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 [!INCLUDETLA#tla_xaml].

Example

The following examples show how to define properties for a xref:System.Windows.Documents.Glyphs object in [!INCLUDETLA#tla_xaml]. The xref:System.Windows.Documents.Glyphs object represents the output of a xref:System.Windows.Media.GlyphRun in [!INCLUDETLA2#tla_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-xamlGlyphsOvwSample1#1]

This example shows how to define other properties of xref:System.Windows.Documents.Glyphs objects in [!INCLUDETLA2#tla_xaml].

[!code-xamlGlyphsOvwSamp2#1]

See also