[]
• new PDFFontsManager()
PDFのフォントマネージャを表します。
▸ Static fallbackFont(font): any
特定のフォントに対するフォールバックフォントを提供します。
静的
実例
// フォントデータを読み込みます。
var font = {
normal: fontsObj['customFont2.ttf']
};
GC.Spread.Sheets.PDF.PDFFontsManager.fallbackFont = function (font) {
var fontInfoArray = font.split(' '), fontName = fontInfoArray[fontInfoArray.length - 1];
if (fontName === 'Calibri') {
return fonts.normal;
}
}
| 名前 | 型 | 説明 |
|---|---|---|
font |
string |
CSSフォント文字列。 |
any
base64文字列形式またはArrayBuffer型のフォントデータ。
▸ Static registerFont(name, font): void
エクスポートPDF用のフォントを登録します。
静的
実例
// フォントデータを登録します。
var font = {
normal: fonts['customFont1.ttf']
};
GC.Spread.Sheets.PDF.PDFFontsManager.registerFont('customFont1', font);
| 名前 | 型 | 説明 |
|---|---|---|
name |
string |
フォント名。 |
font |
Object |
- |
void