Loading

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.

Knowledge 기사 번호

005318424

 
로드 중
Salesforce Help | Article