---
name: "ScriptShape"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ScriptShape"
---

# ScriptShape(3w)

## NAME

**ScriptShape** (USP10.@)

## SYNOPSIS

HRESULT ScriptShape\
  (\
   HDC              *hdc*,\
   SCRIPT\_CACHE\*    *psc*,\
   const WCHAR\*     *pwcChars*,\
   int              *cChars*,\
   int              *cMaxGlyphs*,\
   SCRIPT\_ANALYSIS\* *psa*,\
   WORD\*            *pwOutGlyphs*,\
   WORD\*            *pwLogClust*,\
   SCRIPT\_VISATTR\*  *psva*,\
   int\*             *pcGlyphs*\
  )

## DESCRIPTION

Produce glyphs and visual attributes for a run.

## PARAMS

*hdc* **\[In\]**  Device context.

*psc* **\[In/Out\]**  Opaque pointer to a script cache.

*pwcChars* **\[In\]**  Array of characters specifying the run.

*cChars* **\[In\]**  Number of characters in *pwcChars*.

*cMaxGlyphs* **\[In\]**  Length of *pwOutGlyphs*.

*psa* **\[In/Out\]**  Script analysis.

*pwOutGlyphs* **\[Out\]**  Array of glyphs.

*pwLogClust* **\[Out\]**  Array of logical cluster info.

*psva* **\[Out\]**  Array of visual attributes.

*pcGlyphs* **\[Out\]**  Number of glyphs returned.

## RETURNS

**Success:** **S\_OK**

**Failure:** Non-zero **HRESULT** value.

## IMPLEMENTATION

Declared in **"usp10.h"**.

Implemented in **"dlls/usp10/usp10.c"**.

Debug channel **"uniscribe"**.
