Compartilhar via


Configurações de Registro ClearType

Este tópico fornece uma visão geral sobre o WPF Microsoft ClearType as configurações de registro que são usadas por WPF aplicativos.

Este tópico contém as seguintes seções.

  • Technology Overview
  • Registry Settings
  • ClearType Level
  • Gamma Level
  • Pixel Structure
  • Text Contrast Level
  • Tópicos relacionados

Technology Overview

WPFos aplicativos que processam o texto para um dispositivo de vídeo, use ClearType lendo os recursos para fornecer uma maior experiência. ClearTypeé uma tecnologia de software desenvolvida pela Microsoft que melhora a legibilidade do texto existentes LCDs (telas de cristal), como telas de laptop, Pocket PC telas e monitores de tela plana. ClearTypeWorks, acessando os elementos de faixa de cor vertical individuais em cada pixel de uma tela de LCD. Para obter mais informações sobre ClearType, consulte Visão Geral de ClearType.

Text that is rendered with ClearType can appear significantly different when viewed on various display devices. For example, a small number of monitors implement the color stripe elements in blue, green, red order rather than the more common red, green, blue (RGB) order.

Text that is rendered with ClearType can also appear significantly different when viewed by individuals with varying levels of color sensitivity. Some individuals can detect slight differences in color better than others.

Em cada um desses casos, ClearType recursos precisam ser modificados para fornecer a melhor leitura experiência para cada indivíduo.

Registry Settings

WPFEspecifica a quatro configurações de registro para controlar o ClearType recursos:

Setting

Description

ClearType level

Describes the level of ClearType color clarity.

Gamma level

Describes the level of the pixel color component for a display device.

Pixel structure

Describes the arrangement of pixels for a display device.

Text contrast level

Describes the level of contrast for displayed text.

Essas configurações podem ser acessadas por um utilitário de configuração externo que sabe como fazer referência a identificados WPF ClearType as configurações de registro. Essas configurações também podem ser criadas ou modificadas, acessando os valores diretamente usando o Windows Editor do registro.

Se a WPF ClearType as configurações do registro não estão definidas (que é o estado padrão), o WPF consultas de aplicativo do Windows informações de parâmetros do sistema para as configurações de suavização fonte. 

Observação

Para obter informações sobre a enumeração de nomes de dispositivo de exibição, consulte o SystemParametersInfo Win32 função.

ClearType Level

O ClearType nível permite ajustar o processamento de texto com base na percepção de um indivíduo e sensibilidade de cor. Para alguns indivíduos, o processamento de texto que usa ClearType em seu nível mais alto não produz o melhor lendo experiência.

O ClearType nível é um valor inteiro que varia de 0 a 100. O nível padrão é 100, o que significa ClearType usa a capacidade máxima de elementos de faixa de cor do dispositivo de vídeo. However, a ClearType level of 0 renders text as gray scale. By setting the ClearType level somewhere between 0 and 100, you can create an intermediate level that is suitable to an individual's color sensitivity.

Registry Setting

The registry setting location for the ClearType level is an individual user setting that corresponds to a specific display device name:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\<displayName>

For each display device name for a user, a ClearTypeLevel DWORD value is defined. The following screenshot shows the Registry Editor setting for the ClearType level.

Configurações de ClearType no Editor do Registro

Observação

WPF applications render text in one of either two modes, with and without ClearType.When text is rendered without ClearType, it is referred to as gray scale rendering.

Gamma Level

The gamma level refers to the nonlinear relationship between a pixel value and luminance. The gamma level setting should correspond to the physical characteristics of the display device; otherwise, distortions in rendered output may occur. For example, test may appear too wide or too narrow, or color fringes may appear on the edges of vertical stems of glyphs.

O nível de gama é um valor inteiro que varia de 1000 a 2200. The default level is 1900.

Registry Setting

The registry setting location for the gamma level is a local machine setting that corresponds to a specific display device name:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Avalon.Graphics\<displayName>

For each display device name for a user, a GammaLevel DWORD value is defined. The following screenshot shows the Registry Editor setting for the gamma level.

Configurações de ClearType no Editor do Registro

Pixel Structure

The pixel structure describes the type of pixels that make up a display device. The pixel structure is defined as one of three types:

Type

Value

Description

Flat

0

The display device has no pixel structure. This means that light sources for each color are spread equally on the pixel area—this is referred to as gray scale rendering. Isso é como um padrão de exibir o dispositivo funciona. ClearTypenunca é aplicado ao texto renderizado.

RGB

1

O dispositivo de vídeo tem pixels que consistem em três faixas na seguinte ordem: vermelho, verde e azul. ClearTypeé aplicada ao texto renderizado.

BGR

2

O dispositivo de vídeo tem pixels que consistem em três faixas na seguinte ordem: azul, verde e vermelho. ClearTypeé aplicada ao texto renderizado. Notice how the order is inverted from the RGB type.

A estrutura de pixel corresponde a um valor inteiro que varia de 0 a 2. O nível padrão é 0, o que representa uma estrutura plana de pixel.

Observação

Para obter informações sobre a enumeração de nomes de dispositivo de exibição, consulte o EnumDisplayDevices Win32 função.

Registry Setting

The registry setting location for the pixel structure is a local machine setting that corresponds to a specific display device name:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Avalon.Graphics\<displayName>

For each display device name for a user, a PixelStructure DWORD value is defined. The following screenshot shows the Registry Editor setting for the pixel structure.

Configurações de ClearType no Editor do Registro

Text Contrast Level

The text contrast level allows you to adjust the rendering of text based on the stem widths of glyphs. The text contrast level is an integer value that ranges from 0 to 6—the larger the integer value, the wider the stem. The default level is 1.

Registry Setting

The registry setting location for the text contrast level is an individual user setting that corresponds to a specific display device name:

HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics\<displayName>

For each display device name for a user, a TextContrastLevel DWORD value is defined. The following screenshot shows the Registry Editor setting for the text contrast level.

Configurações de ClearType no Editor do Registro

Consulte também

Referência

Suavização de ClearType

Conceitos

Visão Geral de ClearType