Unicode and local characters might be displayed as empty boxes in graphics output that ODS Graphics produces. This problem occurs when the font in the style definition cannot support the character set.
To display correct values, create a style definition that uses a font that can produce the correct characters. Then point to that style definition within the ODS destination statement.
The following sample code illustrates the syntax and uses HTMLBLUE as the parent style and the font MTsans-serif-unicode. By default, the style definition is stored in SASUSER.TEMPLAT.
proc template;
define style fonts;
parent=styles.htmlblue;
class GraphFonts /
'NodeDetailFont'=("<sans-serif>, <MTsans-serif>",7pt)
'NodeInputLabelFont'=("<sans-serif>, <MTsans-serif>",9pt)
'NodeLabelFont'=("<sans-serif>, <MTsans-serif>",9pt)
'NodeTitleFont'=("<sans-serif>, <MTsans-serif>",9pt)
'GraphDataFont'=("<sans-serif>, <MTsans-serif>",7pt)
'GraphUnicodeFont'=("<MTsans-serif-unicode>",9pt)
'GraphValueFont'=("<MTsans-serif-unicode>, <sans-serif>, <MTsans-serif>",9pt)
'GraphLabel2Font'=("<sans-serif>, <MTsans-serif>",10pt)
'GraphLabelFont'=("<MTsans-serif-unicode>, <sans-serif>, <MTsans-serif>",10pt)
'GraphFootnoteFont'=("<sans-serif>, <MTsans-serif>",10pt)
'GraphTitleFont'=("<MTsans-serif-unicode>, <sans-serif>, <MTsans-serif>",11pt,bold)
'GraphTitle1Font'=("<sans-serif>, <MTsans-serif>",14pt,bold)
'GraphAnnoFont'=("<sans-serif>, <MTsans-serif>",10pt);
end;
ods html style=fonts;
/* ODS Graphics procedure code begins here */
Operating System and Release Information
| SAS System | SAS Viya | Windows 7 Professional x64 | 3.4 | | | |
| Windows 7 Professional 32 bit | 3.4 | | | |
| Windows 7 Home Premium x64 | 3.4 | | | |
| Windows 7 Home Premium 32 bit | 3.4 | | | |
| Windows 7 Enterprise x64 | 3.4 | | | |
| Windows 7 Enterprise 32 bit | 3.4 | | | |
| Microsoft Windows XP Professional | 3.4 | | | |
| Microsoft Windows Server 2019 | 3.4 | | | |
| Microsoft Windows Server 2016 | 3.4 | | | |
| Microsoft Windows Server 2012 Std | 3.4 | | | |
| Microsoft Windows Server 2012 R2 Std | 3.4 | | | |
| Microsoft Windows Server 2012 R2 Datacenter | 3.4 | | | |
| Microsoft Windows Server 2012 Datacenter | 3.4 | | | |
| Microsoft Windows Server 2008 for x64 | 3.4 | | | |
| Microsoft Windows Server 2008 R2 | 3.4 | | | |
| Microsoft Windows Server 2008 | 3.4 | | | |
| Microsoft Windows Server 2003 for x64 | 3.4 | | | |
| Microsoft Windows Server 2003 Standard Edition | 3.4 | | | |
| Microsoft Windows Server 2003 Enterprise Edition | 3.4 | | | |
| Microsoft Windows Server 2003 Datacenter Edition | 3.4 | | | |
| Microsoft Windows NT Workstation | 3.4 | | | |
| Microsoft Windows 2000 Professional | 3.4 | | | |
| Microsoft Windows 2000 Server | 3.4 | | | |
| Microsoft Windows 2000 Datacenter Server | 3.4 | | | |
| Microsoft Windows 2000 Advanced Server | 3.4 | | | |
| Microsoft Windows 95/98 | 3.4 | | | |
| Microsoft Windows 10 | 3.4 | | | |
| Microsoft Windows 8.1 Pro x64 | 3.4 | | | |
| Microsoft Windows 8.1 Pro 32-bit | 3.4 | | | |
| Microsoft Windows 8.1 Enterprise x64 | 3.4 | | | |
| Microsoft Windows 8.1 Enterprise 32-bit | 3.4 | | | |
| Microsoft Windows 8 Pro x64 | 3.4 | | | |
| Microsoft Windows 8 Pro 32-bit | 3.4 | | | |
| Microsoft Windows 8 Enterprise x64 | 3.4 | | | |
| Microsoft Windows 8 Enterprise 32-bit | 3.4 | | | |
| Microsoft® Windows® for x64 | 3.4 | | | |
| Windows 7 Ultimate 32 bit | 3.4 | | | |
| Windows 7 Ultimate x64 | 3.4 | | | |
| Windows Millennium Edition (Me) | 3.4 | | | |
| Windows Vista | 3.4 | | | |
| Windows Vista for x64 | 3.4 | | | |
| Linux for x64 | 3.4 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.