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.
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.