AddType3Glyph

글꼴, Type 3 글꼴

설명

바이트로 코딩된 글리프 하나를 추가하거나 교체하고 글꼴 인코딩, 너비 및 Unicode 추출 맵을 다시 구성합니다

구문

Delphi

Function TPDFlib.AddType3Glyph(FontID, CharCode: Integer; Const GlyphName, UnicodeText: WideString; WidthX, WidthY, LLX, LLY, URX, URY: Double; Const Content: AnsiString): Integer;

ActiveX

Function PDFlib::AddType3Glyph(FontID As Long, CharCode As Long, GlyphName As String, UnicodeText As String, WidthX As Double, WidthY As Double, LLX As Double, LLY As Double, URX As Double, URY As Double, Content As String) As Long

DLL

int DLAddType3Glyph(int InstanceID, int FontID, int CharCode, const wchar_t *GlyphName, const wchar_t *UnicodeText, double WidthX, double WidthY, double LLX, double LLY, double URX, double URY, const char *Content);

매개변수

CharCode의 범위는 0에서 255입니다. UnicodeText에는 한 문자 또는 여러 문자로 이루어진 추출 시퀀스가 들어갈 수 있습니다. Content에는 d0 또는 d1이 없는 PDF 그래픽 연산자가 들어 있습니다

반환 값

1글리프 스트림과 파생 글꼴 테이블이 업데이트되었습니다
0글꼴, 코드, 상자, 예약된 이름 또는 중복 글리프 이름이 유효하지 않습니다

비고

라이브러리는 필요한 d1 메트릭을 먼저 쓰고 제공된 프로그램을 균형 잡힌 q 및 Q 연산자로 격리합니다. 기존 문자 코드를 바꿔도 글꼴 핸들은 안정적으로 유지됩니다. AddType3Font가 반환한 글꼴만 변경할 수 있으며 로드된 문서에서 발견된 Type 3 글꼴은 거부됩니다