You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#pragma once
|
|
|
|
struct SFontPar{
|
|
enum TxtParGapType
|
|
{
|
|
_Center=0,//中心点
|
|
_Boundary,//边界
|
|
};
|
|
SFontPar()
|
|
{
|
|
m_CharGap = 1;//字符间隔
|
|
m_bArc = false;//是否为圆弧文本
|
|
m_bReverse = false;//是否逆序
|
|
m_bOutDir = false;//是否为外向文本
|
|
m_bVertical = false;//是否垂直方向排列
|
|
m_ArcRadius = 12;//圆弧半径
|
|
m_CharHeight = 2;//字符高度
|
|
m_ItalicAngle = 0;//斜体角度
|
|
m_ArcAngle = 0;//基准角度
|
|
m_GapType = _Boundary;//计算间隔的方式
|
|
}
|
|
//间距,高度,宽度
|
|
double m_CharHeight;//字符高度
|
|
double m_CharGap;//字符间隔
|
|
//倾斜角度
|
|
double m_ItalicAngle;//斜体角度
|
|
double m_ArcRadius;//圆弧半径
|
|
//基准角度
|
|
double m_ArcAngle;//基准角度
|
|
|
|
TxtParGapType m_GapType;//计算间隔的方式
|
|
//是否逆序
|
|
bool m_bReverse;//是否逆序
|
|
//排列方向
|
|
bool m_bOutDir;//是否为外向文本
|
|
bool m_bArc;//是否为圆弧文本
|
|
bool m_bVertical;//是否垂直方向排列
|
|
};
|
|
|