API reference › Rendering & Viewer
rasSetCMapDir
Nominally: point the rasterizer/viewer at an external CJK
int32_t __stdcall rasSetCMapDirA(IPGC CachePtr, const char* Path, int32_t Flags);
int32_t __stdcall rasSetCMapDirW(IPGC CachePtr, const wchar_t* Path, int32_t Flags);
function rasSetCMapDirA(CachePtr: IPGC; const Path: PAnsiChar; Flags: Integer): Integer; stdcall;
function rasSetCMapDirW(CachePtr: IPGC; const Path: PWideChar; Flags: Integer): Integer; stdcall;
Purpose. Nominally: point the rasterizer/viewer at an external CJK CMap directory for CID-keyed font rendering.
Description — confirmed complete stub, both variants. rasSetCMapDirA and rasSetCMapDirW are each a single line, Result := Integer(0) — CachePtr, Path, and Flags are all unread. This SDK's real CMap support (used for actual CID-font text extraction/embedding, CID Fonts, CMaps & Alternate Font Lists) does not depend on an external CMap directory at all — it is entirely self-contained — so this pair exists for ABI compatibility only and has no effect regardless of what Path is supplied.
Parameters.
| Parameter | Description |
|---|---|
CachePtr, Path, Flags | All accepted but never read. |
Return value. Always 0.
C# (P/Invoke)
public static extern int rasSetCMapDirA(IntPtr CachePtr, [MarshalAs(UnmanagedType.LPStr)] string Path, int Flags);
public static extern int rasSetCMapDirW(IntPtr CachePtr, [MarshalAs(UnmanagedType.LPWStr)] string Path, int Flags);
Rasterizer/Rendering
rasSetCMapDirA
rasSetCMapDirW
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.