创建字体
来源:互联网 发布:淘宝如何设置套餐价格 编辑:程序博客网 时间:2024/05/18 00:15
m_fFont.CreateFont(18, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_LIGHT, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
0, // nOutPrecision
0, // nClipPrecision
0, // nQuality
0, // nPitchAndFamily
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_LIGHT, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
0, // nOutPrecision
0, // nClipPrecision
0, // nQuality
0, // nPitchAndFamily
_T("雅黑"));
应用
dc.SelectObject(&m_fFont);
根据当前dc,计算字符串占用分辨率
GetTextExtentPoint32(dc.GetSafeHdc(),strText,strText.GetLength(),&szSize);
阅读全文
0 0
- 字体创建
- 创建字体
- 根据字体文件创建字体
- 创建三位字体图片
- 点阵字体的创建
- 通过路径创建字体
- 创建字体CreateFont,CreateFontIndirect
- VC 字体创建
- vc 字体的创建
- MFC 创建字体对话框
- 快速创建特殊字体
- 创建特殊字体
- 创建旋转特殊字体
- NGUI创建动态字体
- Label创建字体
- 创建字体CreateFont,CreateFontIndirect
- Unity 创建fnt字体
- MFC创建字体
- JS-IOS输入法遮挡输入框解决办法
- ant-design-mobile高清方案以及svg配置
- Android Studio 导入项目在Building gradle project info 时一直卡住
- 上海大学oj 膜一下将带给你好运(欧拉函数变形)
- 02 CSS-继承和层叠
- 创建字体
- ubuntu之修改ls显示颜色
- Unity的快捷操作
- 微信测试号加菜单
- 03 CSS-盒模型和标准文档流(行内元素和块级元素)
- spring 源码学习
- brew使用
- 前端CSS面试题详解
- mysql主从同步配置经验