SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 58855: Rotated text might be displayed incorrectly in output produced by ODS Graphics

DetailsAboutRate It

Rotated text might be displayed incorrectly in output produced by ODS Graphics. This problem is most likely to occur when you use one of the following double-byte character set (DBCS) fonts with OpenJDK: MingLiu, HeiT, MS PGothic, MS PMincho, Batang, or Gulim. These DBCS fonts are used in the Japanese, Korean, and Traditional Chinese environments (JA, KO, TW locales). The problem is caused by a bug in OpenJDK, which does not support the fonts in a vertical display.

To circumvent the problem, do one of the following:

  • Download the Oracle JRE from the Oracle website and set it as the default JRE for SAS® Viya sessions.

  • Register the Noto monospace CCJK fonts. Below are the instructions for how to register the Noto monospace CCJK fonts:

    1. Download the fonts from the following website:
      https://www.google.com/get/noto/
      For Japanese, download: Noto Sans CJK JP
      For Korean, download: Noto Sans CJK KR
      For Traditional Chinese, download: Noto Sans CJK TC

    2. Follow the installation steps on the following website:

    3. Update the font registry based on the locale.

      For the ja_JP locale:

      Note: Japanese customers can also use the "Arial Unicode MS" font. In this case, you do not need to download the "Noto Sans CJK JP" fonts.

      Use Notepad or your preferred text editor to create a file called fonts_ja.sasxreg on the C: drive, and then copy and paste the following information into this file:

      #--- File updated at 01AUG2016 04:23:09 
      #--- Exporting SASHELP registry starting at key [ods\fonts\ja_JP] 
      
      [ODS] 
      
      [ODS\FONTS]
      
      [ODS\FONTS\ja_JP]
      "corporate-sans-serif"="Noto Sans Mono CJK JP Regular"
      "corporate-sans-serif-bold"="Noto Sans Mono CJK JP Regular"
      "dings"="Wingdings"
      "monospace"="Noto Sans Mono CJK JP Regular"
      "MTdings"="Monotype Sorts"
      "MTmonospace"="Noto Sans Mono CJK JP Regular"
      "MTsans-serif"="Noto Sans Mono CJK JP Regular"
      "MTsans-serif-unicode"="Arial Unicode MS"
      "MTserif"="Noto Sans Mono CJK JP Regular"
      "MTserif-unicode"="Times New Roman Uni"
      "MTsymbol"="Symbol MT"
      "sans-serif"="Noto Sans Mono CJK JP Regular"
      "serif"="Noto Sans Mono CJK JP Regular" 
      "symbol"="Symbol"
      

      After the above code has been saved in your fonts_ja_sasxreg file, submit the following code in SAS to change the session registry:

      proc registry
         import='c:\fonts_ja.sasxreg';
      run;
      quit;
      

      C:\fonts_ja.sasxreg is the name of the file that you created in Notepad.


      For the ko_KR locale:

      Use Notepad or your preferred text editor to create a file called fonts_ko.sasxreg on the C: drive, and then copy and paste the following information into this file:

      #--- File updated at 01AUG2016 04:23:42
      #--- Exporting SASHELP registry starting at key [ods\fonts\ko_KR]
      
      [ODS]
      
      [ODS\FONTS]
      
      [ODS\FONTS\ko_KR]
      "corporate-sans-serif"="Noto Sans Mono CJK KR Regular"
      "corporate-sans-serif-bold"="Noto Sans Mono CJK KR Regular"
      "dings"="Wingdings"
      "monospace"="Noto Sans Mono CJK KR Regular"
      "MTdings"="Monotype Sorts"
      "MTmonospace"="Noto Sans Mono CJK KR Regular"
      "MTsans-serif"="Noto Sans Mono CJK KR Regular"
      "MTsans-serif-unicode"="Arial Unicode MS"
      "MTserif"="Noto Sans Mono CJK KR Regular"
      "MTserif-unicode"="Times New Roman Uni"
      "MTsymbol"="Symbol MT"
      "sans-serif"="Noto Sans Mono CJK KR Regular"
      "serif"="Noto Sans Mono CJK KR Regular"
      "symbol"="Symbol"
      

      After the above code has been saved in your fonts_ko_sasxreg file, submit the following code in SAS to change the session registry:

      proc registry
         import='c:\fonts_ko.sasxreg';
      run; 
      quit;
      

      C:\fonts_ko.sasxreg is the name of the file that you created in Notepad.


      For the zh_TW locale:

      Use Notepad or your preferred text editor to create a file called fonts_tw.sasxreg on the C: drive, and then copy and paste the following information into this file:

      #--- File updated at 01AUG2016 04:24:04
      #--- Exporting SASHELP registry starting at key [ods\fonts\zh_TW]
      
      [ODS]
      
      [ODS\FONTS]
      
      [ODS\FONTS\zh_TW]
      "corporate-sans-serif"="Noto Sans Mono CJK TC Regular"
      "corporate-sans-serif-bold"="Noto Sans Mono CJK TC Regular"
      "dings"="Wingdings"
      "monospace"="Noto Sans Mono CJK TC Regular"
      "MTdings"="Monotype Sorts"
      "MTmonospace"="Noto Sans Mono CJK TC Regular"
      "MTsans-serif"="Noto Sans Mono CJK TC Regular"
      "MTsans-serif-unicode"="Arial Unicode MS"
      "MTserif"="Noto Sans Mono CJK TC Regular"
      "MTserif-unicode"="Times New Roman Uni"
      "MTsymbol"="Symbol MT"
      "sans-serif"="Noto Sans Mono CJK TC Regular"
      "serif"="Noto Sans Mono CJK TC Regular"
      "symbol"="Symbol"
      

      After the above code has been saved in your fonts_tw_sasxreg file, submit the following code in SAS to change the session registry:

      proc registry
         import='c:\fonts_tw.sasxreg';
      run; 
      quit;
      

      C:\fonts_tw.sasxreg is the name of the file that you created in Notepad.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft Windows 8.1 Enterprise 32-bitV.03.01
Microsoft Windows 8.1 Enterprise x64V.03.01
Microsoft Windows 8.1 Pro 32-bitV.03.01
Microsoft Windows 8.1 Pro x64V.03.01
Microsoft Windows 10V.03.01
Microsoft Windows 95/98V.03.01
Microsoft Windows 2000 Advanced ServerV.03.01
Microsoft Windows 2000 Datacenter ServerV.03.01
Microsoft Windows 2000 ServerV.03.01
Microsoft Windows 2000 ProfessionalV.03.01
Microsoft Windows NT WorkstationV.03.01
Microsoft Windows Server 2003 Datacenter EditionV.03.01
Microsoft Windows Server 2003 Enterprise EditionV.03.01
Microsoft Windows Server 2003 Standard EditionV.03.01
Microsoft Windows Server 2003 for x64V.03.01
Microsoft Windows Server 2008V.03.01
Microsoft Windows Server 2008 R2V.03.01
Microsoft Windows Server 2008 for x64V.03.01
Microsoft Windows Server 2012 DatacenterV.03.01
Microsoft Windows Server 2012 R2 DatacenterV.03.01
Microsoft Windows Server 2012 R2 StdV.03.01
Microsoft Windows Server 2012 StdV.03.01
Microsoft Windows XP ProfessionalV.03.01
Windows 7 Enterprise 32 bitV.03.01
Windows 7 Enterprise x64V.03.01
Windows 7 Home Premium 32 bitV.03.01
Windows 7 Home Premium x64V.03.01
Windows 7 Professional 32 bitV.03.01
Windows 7 Professional x64V.03.01
Windows 7 Ultimate 32 bitV.03.01
Windows 7 Ultimate x64V.03.01
Windows Millennium Edition (Me)V.03.01
Windows VistaV.03.01
Windows Vista for x64V.03.01
Linux for x64V.03.01
Microsoft Windows 8 Pro x64V.03.01
Microsoft Windows 8 Pro 32-bitV.03.01
Microsoft Windows 8 Enterprise x64V.03.01
Microsoft Windows 8 Enterprise 32-bitV.03.01
Microsoft® Windows® for x64V.03.01
* 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.