Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

Font Size Behavior in Document Generation Using Rich Text Fields

公開日: Apr 13, 2026
説明

When generating documents with the documentGenerationFontSource setting configured as either Document Font or Rich Text Editor Font, the system handles font family and font size differently.

  • Font  Behavior:
    • If Document Font is selected, the generated document uses the font  defined in the document template.
    • If Rich Text Editor Font is selected, the font  is taken from the Salesforce Rich Text field data.
  • Font Size Behavior:
    • Font size is always controlled by the Salesforce Rich Text field (RTF) data.
    • The document template’s font size is not considered during document generation.

Scenarios:

  1. Missing Font Size in Source (RTF Field):
    • If no font size is specified in the Rich Text field, the system applies a default font size.
    • This occurs even if the document template specifies a font size (e.g., 12 pt).
  2. Font Size Defined in Source:
    • If a font size is defined in the Rich Text field (e.g., 18px), it is converted to points during document generation.
    • Conversion rule: 1 px = 0.75 pt (e.g., 18px = 13.5 pt).
    • This converted value overrides any font size defined in the document template.

Additional Notes:

  • This bevaviour applies only to RTB_ token
  • Salesforce Rich Text fields use pixels (px) for font sizes.
  • Document templates (e.g., DOCX) use points (pt).
  • During document generation , px values are automatically converted to pt.
  • The system does not read or apply font size settings from the document template for Rich Text tokens.

 

解決策

This  is confirmed as expected behavior.

ナレッジ記事番号

005318424

 
読み込み中
Salesforce Help | Article