mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
#ifndef _SFONT_FILE_H
|
|
#define _SFONT_FILE_H
|
|
|
|
#include "STypes.h"
|
|
|
|
class StringExt;
|
|
class SFontEngine;
|
|
class SFont;
|
|
class SFontFileID;
|
|
|
|
//-------------------------------------------------------------------------------------------------------------------------------
|
|
// SFontFile
|
|
//-------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
class SFontFile
|
|
{
|
|
public:
|
|
|
|
virtual ~SFontFile();
|
|
|
|
// Ñîçäàåì íîâûé îáúåêò SFont, äëÿ äàííîãî FontFile.
|
|
virtual SFont *MakeFont(double *pFontMatrix, double *pTextMatrix) = 0;
|
|
|
|
// Font file ID.
|
|
SFontFileID *GetFontFileID()
|
|
{
|
|
return m_pFontFileID;
|
|
}
|
|
|
|
// Ñ÷åò÷èê ññûëîê. Óäàëÿåì îáúåêò åñëè ñ÷åò÷èê ðàâåí 0.
|
|
void AddRef();
|
|
void Release();
|
|
|
|
protected:
|
|
|
|
SFontFile(SFontFileID *pFontFileID, wchar_t *wsFileName, BOOL bDeleteFile);
|
|
|
|
private:
|
|
|
|
SFontFileID *m_pFontFileID;
|
|
CStringW m_wsFileName;
|
|
BOOL m_bDeleteFile;
|
|
int m_nRef;
|
|
|
|
friend class SFontEngine;
|
|
};
|
|
|
|
#endif /* _SFONT_FILE_H */
|