Forum How do I...?

How do I make PDF using LinGothic-Bold_2.ttf?

hiroyasu
Hi,

I am facing a issue relate to Chinese character font on PDF.
I insalled Simplified Chinese characters font and Traditional Chinese character font.

Simplified Chinese characters font is DFGB_H9.ttc.
Traditional Chinese character font is LinGothic-Bold_2.ttf.

CSS code is under below.

//Simplified Chinese
@font-face {
font-family: "prince-DFPHei";
font-weight: 700;
src: url("c:\\windows\\fonts\\DFGB_H9.ttc");
}


//Traditional Chinese
@font-face {
font-family: "prince-Lin";
font-weight: 700;
src: url("c:\\windows\\fonts\\LinGothic-Bold_2.ttf");
}

In this case,
I could get correct Simplified Chinese PDF .
However, I couldn't get Traditional Chinese PDF using LinGothic-Bold_2.ttf.
I got warning in log under below.

- Prince output log
[exec] prince: warning: an expected data value was missing
[exec] prince: c:/windows/fonts/LinGothic-Bold_2.ttf: warning: could not load font data
[exec] prince: warning: an expected data value was missing
[exec] prince: c:/windows/fonts/LinGothic-Bold_2.ttf: warning: could not load font data

(You can confirm the font install path by the attached files)


- PC environment
Windows 10 pro
Prince 13.5


How do I make PDF using LinGothic-Bold_2.ttf?



I also tried CSS under below.
At both cases, I didn't get warning, however I couln't get PDF useing LinGothic-Bold_2.ttf.


//Traditional Chinese
@font-face {
font-family: "prince-Lin";
font-weight: 700;
src: prince-lookup("超研澤粗黑");
}



//Traditional Chinese
@font-face {
font-family: "prince-Lin";
font-weight: 700;
src: prince-lookup("LinGothic-Bold");
}


Thanks in advance.
  1. font-info1.png21.0 kB
    font install path
  2. font-info2.png10.2 kB
    additional font infomation
mikeday
Thank you we will investigate this issue.
hiroyasu
Hi, mikeday.

Thank you for your coporation.
I'll wait for your post.


mikeday
This is because the font has no Unicode cmap and Prince does not support the big5 cmap yet. We may be able to support this in the future. In the meantime, perhaps you could use a different Chinese font? The recent Microsoft fonts all work with Prince.
hiroyasu
Hi, mikeday.

Thank you for your investigating.
I'll use a different Chinese font for Traditional Chinese.

I'm looking forward to be supported the big5 cmap in near future.



mikeday
Today we have an updated latest build of Prince that supports fonts with Big5 cmap encodings, I hope it helps! :D
hiroyasu
Hi, mikeday.

Thank you for your infomation.

Immediately, I've tried to use the latest build.
As a result, I could got a PDF useing LinGothic-Bold_2.ttf.

Thanks a lot!