зеркало из https://github.com/mozilla/moz-skia.git
Remove SK_FONTHOST_WIN_DW define.
git-svn-id: http://skia.googlecode.com/svn/trunk@5132 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
bc4b66f42c
Коммит
b49d989997
|
@ -50,11 +50,6 @@
|
|||
],
|
||||
}
|
||||
],
|
||||
[ 'skia_directwrite', {
|
||||
'defines': [
|
||||
'SK_FONTHOST_WIN_DW',
|
||||
],
|
||||
}],
|
||||
[ 'skia_mesa', {
|
||||
'defines': [
|
||||
'SK_MESA',
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
extern void skia_set_text_gamma(float blackGamma, float whiteGamma);
|
||||
|
||||
#if defined(SK_BUILD_FOR_WIN) && !defined(SK_FONTHOST_WIN_DW)
|
||||
#if defined(SK_BUILD_FOR_WIN) && defined(SK_FONTHOST_WIN_GDI)
|
||||
extern SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&);
|
||||
#endif
|
||||
|
||||
|
@ -45,7 +45,7 @@ static const char gText[] =
|
|||
class TextBoxView : public SampleView {
|
||||
public:
|
||||
TextBoxView() {
|
||||
#if defined(SK_BUILD_FOR_WIN) && !defined(SK_FONTHOST_WIN_DW)
|
||||
#if defined(SK_BUILD_FOR_WIN) && defined(SK_FONTHOST_WIN_GDI)
|
||||
LOGFONT lf;
|
||||
sk_bzero(&lf, sizeof(lf));
|
||||
lf.lfHeight = 9;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
SK_DEFINE_INST_COUNT(SkAdvancedTypefaceMetrics)
|
||||
|
||||
#if defined(SK_BUILD_FOR_WIN) && defined(SK_FONTHOST_WIN_DW)
|
||||
#if defined(SK_BUILD_FOR_WIN)
|
||||
#include <DWrite.h>
|
||||
#endif
|
||||
|
||||
|
@ -257,14 +257,13 @@ SkAdvancedTypefaceMetrics::AdvanceMetric<Data>* getAdvanceData(
|
|||
|
||||
// Make AdvanceMetric template functions available for linking with typename
|
||||
// WidthRange and VerticalAdvanceRange.
|
||||
#if defined(SK_BUILD_FOR_WIN) && !defined(SK_FONTHOST_WIN_DW)
|
||||
#if defined(SK_BUILD_FOR_WIN)
|
||||
template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
|
||||
HDC hdc,
|
||||
int num_glyphs,
|
||||
const uint32_t* subsetGlyphIDs,
|
||||
uint32_t subsetGlyphIDsLength,
|
||||
bool (*getAdvance)(HDC hdc, int gId, int16_t* data));
|
||||
#elif defined(SK_BUILD_FOR_WIN) && defined(SK_FONTHOST_WIN_DW)
|
||||
template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
|
||||
IDWriteFontFace* fontFace,
|
||||
int num_glyphs,
|
||||
|
|
Загрузка…
Ссылка в новой задаче