FontCustomPlatformData.h [plain text]
#ifndef FontCustomPlatformData_h
#define FontCustomPlatformData_h
#include "FontOrientation.h"
#include "FontRenderingMode.h"
#include "FontWidthVariant.h"
#include <wtf/Noncopyable.h>
#include <wtf/text/WTFString.h>
typedef char FILECHAR;
struct FS_STATE;
namespace WebCore {
class FontPlatformData;
class MonotypeFont;
class SharedBuffer;
struct FontCustomPlatformData {
WTF_MAKE_NONCOPYABLE(FontCustomPlatformData);
public:
FontCustomPlatformData(FILECHAR* fontName, PassRefPtr<SharedBuffer>);
~FontCustomPlatformData();
FontPlatformData fontPlatformData(int size, bool syntheticBold, bool syntheticItalic, FontOrientation = Horizontal,
FontWidthVariant = RegularWidth, FontRenderingMode = NormalRenderingMode);
static bool supportsFormat(const String&);
FILECHAR* m_fontName;
RefPtr<SharedBuffer> m_buffer;
};
FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer*);
}
#endif // FontCustomPlatformData_h