위의 파일 중 conf/fop-config.xml 에 문제가 있습니다.
13번째 줄에 <base>../</base>라고 되어 있는데요. 의도는 fop-config.xml이 있는 디렉터리(docbook/conf/)를 기준으로 하나 올라간 docbook/를 지정하는 것이었는데, 알고 보니 FOP가 실행된 현재 작업 디렉터리가 기준이었습니다. 현재 작업 디렉터리에 무관하게 FOP가 글꼴들을 제대로 찾을 수 있으려면 ../를 docbook/ 디렉터리에 해당하는 절대 경로 URI로 바꾸어야 합니다.
절차는 다음과 같습니다.
1. docbook/의 configure.bat을 실행하세요. 그러면 conf/fop-config.xml 이 예전 상태로 복구됩니다.
2. 텍스트 편집기로 conf/fop-config.xml 를 열어서,
- 코드: 모두 선택
<!-- +++ font configuration for [UnTaza] +++ -->
<font kerning="yes" metrics-url="fonts/UnTaza.xml" embed-url="fonts/UnTaza.ttf">
<font-triplet style="normal" weight="normal" name="UnTaza"/>
<font-triplet style="italic" weight="normal" name="UnTaza"/>
<font-triplet style="normal" weight="bold" name="UnTaza"/>
</font>
를 다음으로 대체하세요.
- 코드: 모두 선택
<!-- +++ font configuration for [UnTaza] +++ -->
<font kerning="yes" metrics-url="fonts/UnTaza.xml" embed-url="fonts/UnTaza.ttf">
<font-triplet style="normal" weight="normal" name="UnTaza"/>
<font-triplet style="italic" weight="normal" name="UnTaza"/>
<font-triplet style="normal" weight="bold" name="UnTaza"/>
</font>
<!-- +++ font configuration for [NanumGothic_Coding] +++ -->
<font kerning="yes" metrics-url="fonts/NanumGothicCoding.xml" embed-url="fonts/NanumGothicCoding.ttf">
<font-triplet style="normal" weight="normal" name="monospace"/>
<font-triplet style="italic" weight="normal" name="monospace"/>
<font-triplet style="normal" weight="normal" name="NanumGothicCoding"/>
<font-triplet style="italic" weight="normal" name="NanumGothicCoding"/>
</font>
<!-- +++ font configuration for [NanumGothic_Coding_Bold] +++ -->
<font kerning="yes" metrics-url="fonts/NanumGothicCoding-Bold.xml" embed-url="fonts/NanumGothicCoding-Bold.ttf">
<font-triplet style="normal" weight="bold" name="monospace"/>
<font-triplet style="italic" weight="bold" name="monospace"/>
<font-triplet style="normal" weight="bold" name="NanumGothicCoding-Bold"/>
<font-triplet style="italic" weight="bold" name="NanumGothicCoding-Bold"/>
</font>