<?xml version="1.0" encoding="UTF-8"?>


<!--
	The priority of fonts configuration file is as following:
	Two major levels of configuration files:
	1. Configuration files without format in name are divided into three sub-levels:
		a. default configuration file: fontsConfig.xml
		b. configuration files specified for special platform: fontsConfig_Windows_XP.xml or fontsConfig_win32.xml.
		c. configuration files specified for special platform and special locale: fontsConfig_win32_zh.xml/fontsConfig_win32_zh_CN.xml
	2. Configuration files with format in name are also divided into 3 sub-levels:
		d. default configuration files for a format: fontsConfig_pdf.xml
		e. configuration files for a format under special platform: fontsConfig_pdf_win32.xml
		f. configuration files for a format under special platform: fontsConfig_pdf_win32_zh.xml
	From level a to level f, the priority of configuration files increase.
	
	The logic how a single configuration is loaded and used is described below:
	1. 	PDF layout engine loads the font files from the fonts folder of the plug-in 
	"org.eclipse.birt.report.engine.fonts". and then the system defined font
	folder. If the section <font-paths> is set in fontsConfig.xml, the system 
	defined font folder will be ignored, and the font files specified in section 
	<font-paths> will be loaded instead.
	
	2. 	PDF layout engine tries to use the font specified in design-time to render the pdf/postscript/ppt. 
	If the font is a generic family, it will be mapped to a PDF embedded type1 font. 	
	"serif" to "Times-Roman" 
	"fantasy" to "Times-Roman" 
	"sans-serif" to "Helvetica"
	"monospace" to "Courier"
	"cursive" to "Times-Roman"
	If the font can not be built, it will go to the UNICODE block of that character,
	and try the font defined in that block.
	If this also fails, the character will be replaced with '?' using the default font, 
	currently "Times-Roman", to denote a place of missing character. 
-->
<font>
<!--
	In <font-aliases> section, you can:
	a. Define a mapping from a generic family to a font family.
		for example: the following defines a mapping from generic family "serif" to a Type1 font
		family "Times-Roman".
			<mapping name="serif" font-family="Times-Roman"/>
			
	b. Define a mapping from a font family to another font family.
		This is useful if you want to use a font for PDF rendering which differs from the font used
	in design-time. 
		for example: the following defines to replace "simsun" with "Arial Unicode MS".
			<mapping name="simsun" font-family="Arial Unicode MS"/>
			
	In previous version, name "font-mapping" is used for "font-aliases". Currently, "font-mapping" entry
	also works in the same way as "font-aliases" entry does. When "font-mapping" and "font-aliases" are
	both available, the different mappings are merged, for the same entries in the both, those in
	"font-aliases" will override those in "font-mapping".
-->
	<font-aliases>
		<mapping name="serif" font-family="Times-Roman" />
		<mapping name="sans-serif" font-family="Helvetica" />
		<mapping name="monospace" font-family="Courier" />
		<mapping name="cursive" font-family="Times-Roman" />
		<mapping name="fantasy" font-family="Times-Roman" />
	</font-aliases>
	<search-sequences>
		<sequence locale="zh_CN">
			<catalog name="Western" />
			<catalog name="Chinese_S" />
			<catalog name="Chinese_T" />
			<catalog name="Chinese" />
			<catalog name="Japanese" />
			<catalog name="Korean" />
		</sequence>
		<sequence locale="zh">
			<catalog name="Western" />
			<catalog name="Chinese_T" />
			<catalog name="Chinese_S" />
			<catalog name="Chinese" />
			<catalog name="Japanese" />
			<catalog name="Korean" />
		</sequence>
		<sequence locale="ja">
			<catalog name="Western" />
			<catalog name="Japanese" />
			<catalog name="Chinese" />
			<catalog name="Korean" />
		</sequence>
		<sequence locale="ko">
			<catalog name="Western" />
			<catalog name="Korean" />
			<catalog name="Chinese" />
			<catalog name="Japanese" />
		</sequence>
	</search-sequences>
<!--
	<composite-font> section is used to define a composite font, which is a font consists of many physical
	fonts used for different characters. The component fonts are defined by <block> entries. Each <block>
	entry defines a mapping from a UNICODE range to a font family name, which means the font family will 
	be applied for the characters with UNICODE in the range.
	
	Characters in one block may need different fonts. One example is, in block "Currency Symbols",
	characters are currency symbols in different language, the fonts specified for which should be fonts
	for the corresponding languages. For these characters, special fonts can be specified for characters
	one by one using <character> entry:
	<composite-font>
	    ......
		<character value="฿" font-family="Angsana New"/>
		<character value="\u0068" font-family="Time Roman"/>
	    ......
	</composite-font>
	Note that characters are represented by attribute "value", which can be of two forms, the character
	itself or its UNICODE.
	
	A composite font named "all-fonts" will be applied as default font, that is, when a character is not 
	defined in desired font, the font defined in "all-fonts" will be used.
-->
	<composite-font name="all-fonts" font-family="Times-Roman">
	</composite-font>

<!--
	In this section, you can set the font path you want PDF layout engine to read, ranging from one font
	file to a whole font folder.
		for example: 
		add a font folder
		<path path="c:/windows/fonts"/>
		add a font file
		<path path="/usr/X11R6/lib/X11/fonts/TTF/arial.ttf"/>

	But please NOTE:
 		If this section is set, PDF layout engine will ONLY load the font files in these paths and ignore
	the system defined font folder. If you want to use the system font folder as well, please include
	it in this section. 
 	
 	On some systems, BIRT PDF layout engine may not recognize the system defined font folder. If you encounter
	this issue, please add the font path to this section.
-->
	<font-paths>
		<path path="C:/windows/fonts" />
		<path path="d:/windows/fonts" />
		<path path="e:/windows/fonts" />
		<path path="f:/windows/fonts" />
		<path path="g:/windows/fonts" />
		<path path="C:/WINNT/fonts" />
		<path path="d:/WINNT/fonts" />
		<path path="e:/WINNT/fonts" />
		<path path="f:/WINNT/fonts" />
		<path path="g:/WINNT/fonts" />
		<path path="/usr/X/lib/X11/fonts/TrueType" />
		<path path="/usr/share/fonts/default/TrueType" />
		<path path="/usr/openwin/lib/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/euro_fonts/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/ar/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/ja/X11/fonts/TT" />
		<path path="/usr/openwin/lib/locale/ko/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/th_TH/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT" />
		<path path="/usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT" />
		<path path="/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/zh/X11/fonts/TrueType" />
		<path path="/usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType" />
		<path path="/usr/X11R6/lib/X11/fonts/TrueType" />
		<path path="/usr/X11R6/lib/X11/fonts/truetype" />
		<path path="/usr/X11R6/lib/X11/fonts/tt" />
		<path path="/usr/X11R6/lib/X11/fonts/TTF" />
		<path path="/usr/X11R6/lib/X11/fonts/OTF" />
		<path path="/usr/share/fonts/ja/TrueType" />
		<path path="/usr/share/fonts/truetype" />
		<path path="/usr/share/fonts/ko/TrueType" />
		<path path="/usr/share/fonts/zh_CN/TrueType" />
		<path path="/usr/share/fonts/zh_TW/TrueType" />
		<path path="/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" />
	</font-paths>
<!--
	For <font-encodings> section,
	In most cases, you need not use this section, unless you are trying to use a non true-type font for
	PDF rendering.
-->
	<font-encodings>
		<encoding font-family="Times-Roman" encoding="Cp1252" />
		<encoding font-family="Helvetica" encoding="Cp1252" />
		<encoding font-family="Courier" encoding="Cp1252" />
		<encoding font-family="Zapfdingbats" encoding="Cp1252" />
		<encoding font-family="Symbol" encoding="Cp1252" />
		<encoding font-family="STSong-Light" encoding="UniGB-UCS2-H" />
		<encoding font-family="STSongStd-Light" encoding="UniGB-UCS2-H" />
		<encoding font-family="MHei-Medium" encoding="UniCNS-UCS2-H" />
		<encoding font-family="MSung-Light" encoding="UniCNS-UCS2-H" />
		<encoding font-family="MSungStd-Light" encoding="UniCNS-UCS2-H" />
		<encoding font-family="HeiseiMin-W3" encoding="UniJIS-UCS2-H" />
		<encoding font-family="HeiseiKakuGo-W5" encoding="UniJIS-UCS2-H" />
		<encoding font-family="KozMinPro-Regular" encoding="UniJIS-UCS2-H" />
		<encoding font-family="HYGoThic-Medium" encoding="UniKS-UCS2-H" />
		<encoding font-family="HYSMyeongJo-Medium" encoding="UniKS-UCS2-H" />
		<encoding font-family="HYSMyeongJoStd" encoding="UniKS-UCS2-H" />
	</font-encodings>
</font>