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.
|
|
|
|
#pragma once
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
#include "FontType.h"
|
|
|
|
|
#include "SmartPtr.h"
|
|
|
|
|
|
|
|
|
|
typedef pair<CString,CString> NamePath;//<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><C2B7>
|
|
|
|
|
|
|
|
|
|
class CFontTypeMgr
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
~CFontTypeMgr(void);
|
|
|
|
|
static CFontTypeMgr &Instance();//<2F><><EFBFBD><EFBFBD>ģʽ
|
|
|
|
|
|
|
|
|
|
void Initialize();
|
|
|
|
|
void UpdateFontNameComb(CComboBox &Comb);
|
|
|
|
|
void FontTypeNameInsertToComb(CComboBox &Comb);
|
|
|
|
|
CString GetFontPath(CString FontName);
|
|
|
|
|
void SetCurFontType(int idx);
|
|
|
|
|
void GetCurFontName(int idx);
|
|
|
|
|
void CreatCharVec(char *pChar,vector<PointType> &m_PonitVec);
|
|
|
|
|
CString GetCurFontTypeName();
|
|
|
|
|
CString GetCurFontName();
|
|
|
|
|
void SetCurFontByName(CString FontTypeName,CString FontName);
|
|
|
|
|
int GetCurFontTypeIdx();
|
|
|
|
|
private:
|
|
|
|
|
CFontTypeMgr(void);
|
|
|
|
|
|
|
|
|
|
void AddFontType(CFontType *);
|
|
|
|
|
bool CheckIdx(int idx);
|
|
|
|
|
private:
|
|
|
|
|
static CFontTypeMgr m_Instance;//<2F><><EFBFBD><EFBFBD>ģʽ
|
|
|
|
|
int m_CurFontTypeIdx;//<2F><>ǰѡ<C7B0><D1A1><EFBFBD><EFBFBD><EFBFBD>ֿ<EFBFBD><D6BF><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
vector<Sptr<CFontType>> m_FontTypeVec;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
};
|