Versions in this module Expand all Collapse all v1 v1.0.1 Feb 28, 2024 Changes in this version + var ErrCorruptFontDict = errors.New("pdfcpu: corrupt fontDict") + func CIDFontDescriptor(xRefTable *model.XRefTable, ttf font.TTFLight, ...) (*types.IndirectRef, error) + func CIDFontDict(xRefTable *model.XRefTable, ttf font.TTFLight, ...) (*types.IndirectRef, error) + func CIDFontFile(xRefTable *model.XRefTable, ttf font.TTFLight, fontName string, subFont bool) (*types.IndirectRef, error) + func CIDSet(xRefTable *model.XRefTable, ttf font.TTFLight, fontName string, ...) (*types.IndirectRef, error) + func CIDWidths(xRefTable *model.XRefTable, ttf font.TTFLight, fontName string, subFont bool, ...) (*types.IndirectRef, error) + func CJK(script, lang string) bool + func CJKEncoding(s string) bool + func EnsureFontDict(xRefTable *model.XRefTable, fontName, lang, script string, field bool, ...) (*types.IndirectRef, error) + func FontDescriptor(xRefTable *model.XRefTable, ttf font.TTFLight, fontName, fontLang string) (*types.IndirectRef, error) + func FontResources(xRefTable *model.XRefTable, fm model.FontMap) (types.Dict, error) + func IndRefsForUserfontUpdate(xRefTable *model.XRefTable, d types.Dict, lang string, ...) error + func Lang(xRefTable *model.XRefTable, d types.Dict) (string, error) + func Name(xRefTable *model.XRefTable, fontDict types.Dict, objNumber int) (prefix, fontName string, err error) + func PDFDocEncoding(xRefTable *model.XRefTable) (*types.IndirectRef, error) + func RTL(lang string) bool + func SupportedScript(s string) bool + func UpdateUserfont(xRefTable *model.XRefTable, fontName string, f model.FontResource) error + func Widths(xRefTable *model.XRefTable, ttf font.TTFLight, first, last int) (*types.IndirectRef, error)