检查字体平滑 - CheckFontSmooth
函数简介
检查字体平滑状态。
接口名称
CheckFontSmooth
DLL调用
int CheckFontSmooth(long instance);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 检查字体平滑是否开启
int smooth = CheckFontSmooth(instance);
if (smooth) {
// 字体平滑已开启,可关闭以提高识别精度
SetFontSmooth(instance, 0);
}
Python
# 待补充
返回值
整数型:1 成功,0 失败。
