UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:usp10.ScriptPositionSingleGlyph |
ScriptPositionSingleGlyph function (usp10.h) |
Positions a single glyph with a single adjustment using a specified feature provided in the font for OpenType processing. Most often, applications use this function to align a glyph optically at the beginning or end of a line. |
|
intl\scriptpositionsingleglyph.htm |
Intl |
8dc776a9-fdde-4982-a2ca-e4384615bc47 |
12/05/2018 |
ScriptPositionSingleGlyph, ScriptPositionSingleGlyph function [Internationalization for Windows Applications], _win32_ScriptPositionSingleGlyph, intl.scriptpositionsingleglyph, usp10/ScriptPositionSingleGlyph |
usp10.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008 [desktop apps only] |
Usp10.lib |
Usp10.dll |
Windows |
Usp10.dll version 1.600 or greater on Windows XP |
19H1 |
|
|
|
|
|
|
Positions a single glyph with a single adjustment using a specified feature provided in the font for OpenType processing. Most often, applications use this function to align a glyph optically at the beginning or end of a line.
Handle to the device context. For more information, see Caching.
Pointer to a SCRIPT_CACHE structure identifying the script cache.
Pointer to a SCRIPT_ANALYSIS structure obtained from a previous call to ScriptItemizeOpenType. This structure identifies the shaping engine, so that the advance widths can be retrieved.
Alternatively, the application can set this parameter to NULL to retrieve unfiltered results.
An OPENTYPE_TAG structure defining the script tag for shaping.
An OPENTYPE_TAG structure defining the language tag for shaping.
An OPENTYPE_TAG structure defining the feature tag to use for shaping the alternate glyph.
A flag specifying if single substitution should be applied to the identifier specified in wGlyphId. The application sets this parameter to 1 to apply the single substitution feature to the identifier. The application sets the parameter to 0 if the function should not apply the feature.
The identifier of the original glyph being shaped.
The original glyph advance width.
The original glyph offset. Typically, this value is an output of ScriptPlaceOpenType or ScriptPlace.
Pointer to the location in which this function retrieves the new advance width adjusted for the alternate glyph.
Pointer to the location in which this function retrieves the new glyph offset adjusted for the alternate glyph.
Returns 0 if successful. The function returns a nonzero HRESULT value if it does not succeed. The application can test the return value with the SUCCEEDED and FAILED macros.
This function positions an individual glyph by adjusting the advance width and/or the offset of the given glyph. The function assumes that the font requires only one adjustment.
A typical use of this function is the slight adjustment of the margin to account for the visual impression made by certain characters. In Latin script, for example, at the beginning of a line it is common to make a slight adjustment to the left for an initial capital (such as "T" or "O") that does not have a vertical line on the left part of the glyph. Although doing this breaks the strict linear margin, the eye perceives the margin as more even.
The following examples demonstrate this effect. The first example shows strict alignment; the next two examples show an adjustment of the initial "T" to the left. The adjustments are by one pixel and two pixels, respectively. The magnified images to the right show how the "T" pushes slightly farther into the left margin in each successive case.