c语⾔ttextstyle有哪些字体,EasyX⽂档-ttextstyle ttextstyle
这个函数⽤于设置当前字体样式。
smile是什么void ttextstyle(
int nHeight,
int nWidth,
LPCTSTR lpszFace
);
void ttextstyle(
int nHeight,
int nWidth,
nicholas t
LPCTSTR lpszFace,
int nEscapement,
int nOrientation,
int nWeight,
bool bItalic,
bool bUnderline,
bool bStrikeOut
);
void ttextstyle(
int nHeight,
int nWidth,
LPCTSTR lpszFace,
refresh是什么意思
int nEscapement,
int nOrientation,盗梦空间 inception
兔子的英文单词int nWeight,
bool bItalic,
bool bUnderline,
bool bStrikeOut,
BYTE fbCharSet,
BYTE fbOutPrecision,
BYTE fbClipPrecision,
BYTE fbQuality,
BYTE fbPitchAndFamily
void ttextstyle(const LOGFONT *font);
英语手抄报
参数
nHeight
指定⾼度(逻辑单位)。
nWidth
职称英语成绩查询字符的平均宽度(逻辑单位)。如果为 0,则⽐例⾃适应。
lpszFace
字体名称。
nEscapement
火花塞的作用字符串的书写⾓度,单位 0.1 度。
nOrientation
每个字符的书写⾓度,单位 0.1 度。
break dancenWeight
字符的笔画粗细,范围 0~1000。0 表⽰默认粗细。详见 LOGFONT 结构体。bItalic
是否斜体。
bUnderline
是否有下划线。
bStrikeOut
是否有删除线。
fbCharSet
指定字符集。详见 LOGFONT 结构体。
fbOutPrecision
指定⽂字的输出精度。详见 LOGFONT 结构体。
fbClipPrecision
指定⽂字的剪辑精度。详见 LOGFONT 结构体。
fbQuality
指定⽂字的输出质量。详见 LOGFONT 结构体。
fbPitchAndFamily
指定以常规⽅式描述字体的字体系列。详见 LOGFONT 结构体。
font
指向 LOGFONT 结构体的指针。
身份证翻译返回值
⽰例
/
/ 设置当前字体为⾼ 16 像素的“Consolas”。(VC6 / VC2008 / VC2010 / VC2012) ttextstyle(16, 0, _T("Consolas"));
outtextxy(0, 0, _T("测试"));
// 设置输出效果为抗锯齿 (VC6 / VC2008 / VC2010 / VC2012)
LOGFONT f;
gettextstyle(&f);// 获取当前字体设置
f.lfHeight = 48;// 设置字体⾼度为 48
_tcscpy(f.lfFaceName, _T("⿊体"));// 设置字体为“⿊体”(⾼版本 VC 推荐使⽤ _tcscpy_s 函数) f.lfQuality = ANTIALIASED_QUALITY;// 设置输出效果为抗锯齿
ttextstyle(&f);// 设置字体样式
outtextxy(0, 50, _T("抗锯齿效果"));