Hi All, There are both Chinese and English characters in my report. I want to use the Time New Roman font for the English characters and the SimSun font for the Chinese ones. I tried a font-face list "Times New Roman, Simsun" in my style definition. Given the Time New Roman font has no glyph for Chinese characters, I think the SimSun font will be applied for Chinese. This method is often used in CSS. But the result is not what I expected. Word processor says the Chinese characters in my report have a monospace font (等线字体) rather than SimSun. By the way, if I changed Time New Roman to Courier. It works. Courier is a kind of monospace font. Does the font type matter? Anyway, I want to know whether my idea is feasible in SAS. The following is my program sample. I program in an unicode session and both kinds of fonts have been registered in SAS. Many thanks for your help in advanced! proc template;
define style MyStyle;
parent = styles.Printer;
class fonts /
'TitleFont' = ("'Times New Roman',Simsun",10.5pt,Bold)
'TitleFont2' = ("'Times New Roman',Simsun",10.5pt,Bold)
'StrongFont' = ("'Times New Roman',Simsun",10.5pt,Bold)
'EmphasisFont' = ("'Times New Roman',Simsun",10.5pt,Italic)
'FixedEmphasisFont' = ("'Times New Roman',Simsun",10.5pt,Italic)
'FixedStrongFont' = ("'Times New Roman',Simsun",10.5pt,Bold)
'FixedHeadingFont' = ("'Times New Roman',Simsun",10.5pt,Bold)
'BatchFixedFont' = ("'Times New Roman',Simsun",10.5pt)
'FixedFont' = ("'Times New Roman',Simsun",10.5pt)
'headingEmphasisFont' = ("'Times New Roman',Simsun",10.5pt,Bold Italic )
'headingFont' = ("'Times New Roman',Simsun",10.5pt,Bold)
'docFont' = ("'Times New Roman',Simsun",10.5pt)
;
end;
run;
data test;
a = "你好, 世界";
b = "Hello, world!";
run;
options nonumber nodate;
ods rtf file="test.rtf" style=MyStyle;
proc report data=test;
run;
ods rtf close;
... View more