Package org.docx4j.fonts
Class CJKToEnglish
java.lang.Object
org.docx4j.fonts.CJKToEnglish
public class CJKToEnglish
extends java.lang.Object
Certain fonts have CJK names in a docx.
However, in Win 7 (English locale at least), the font names are in English.
So this class translates the docx CJK font name to a physical font name.
- Author:
- jharrop
-
Constructor Summary
Constructors Constructor Description CJKToEnglish()
-
Method Summary
Modifier and Type Method Description static java.lang.String
toEnglish(java.lang.String fontName)
Convert a CJK font name (as used in docx) to an English font name (as used on Win 7, English locale at least).
-
Constructor Details
-
CJKToEnglish
public CJKToEnglish()
-
-
Method Details
-
toEnglish
public static java.lang.String toEnglish(java.lang.String fontName)Convert a CJK font name (as used in docx) to an English font name (as used on Win 7, English locale at least).- Parameters:
fontName
-- Returns:
-