FontCachePango.cpp [plain text]
#include "config.h"
#include "FontCache.h"
#include "Font.h"
#include "OwnPtrCairo.h"
#include "SimpleFontData.h"
#include <wtf/Assertions.h>
#include <wtf/text/CString.h>
namespace WebCore {
void FontCache::platformInit()
{
if (!FontPlatformData::init())
ASSERT_NOT_REACHED();
}
const SimpleFontData* FontCache::getFontDataForCharacters(const Font& font, const UChar* characters, int length)
{
return 0;
}
SimpleFontData* FontCache::getSimilarFontPlatformData(const Font& font)
{
return 0;
}
SimpleFontData* FontCache::getLastResortFallbackFont(const FontDescription& fontDescription, ShouldRetain shouldRetain)
{
static AtomicString timesStr("Times New Roman");
return getCachedFontData(fontDescription, timesStr, false, shouldRetain);
}
void FontCache::getTraitsInFamily(const AtomicString& familyName, Vector<unsigned>& traitsMasks)
{
}
FontPlatformData* FontCache::createFontPlatformData(const FontDescription& fontDescription, const AtomicString& family)
{
return new FontPlatformData(fontDescription, family);
}
}