2019-12-23 17:43:10 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2019-12-21 18:40:17 -05:00
|
|
|
|
|
|
|
|
namespace PortabilityLayer
|
2019-12-23 17:43:10 -05:00
|
|
|
{
|
|
|
|
|
class HostFontRenderedGlyph;
|
2020-01-01 20:24:46 -05:00
|
|
|
struct RenderedFontMetrics;
|
2019-12-23 17:43:10 -05:00
|
|
|
|
2019-12-21 18:40:17 -05:00
|
|
|
class HostFont
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual void Destroy() = 0;
|
2020-01-18 18:20:16 -05:00
|
|
|
virtual HostFontRenderedGlyph *Render(uint32_t unicodeCodePoint, unsigned int size, bool aa) = 0;
|
2020-01-01 20:24:46 -05:00
|
|
|
virtual bool GetLineSpacing(unsigned int size, int32_t &outSpacing) = 0;
|
2019-12-21 18:40:17 -05:00
|
|
|
};
|
|
|
|
|
}
|