c语言ttextstyle有哪些字体,EasyX文档-ttextstyle

更新时间:2023-07-21 06:45:46 阅读: 评论:0

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("抗锯齿效果"));

本文发布于:2023-07-21 06:45:46,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/1108461.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:设置   字体   指定   输出   是否
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图