https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 054c33d1d469c8633c07e25e8df67e44c4aa0dda authored by seabld on 03 December 2014, 06:06:54 UTC
Added tag SEAMONKEY_2_31_RELEASE for changeset FIREFOX_34_0_RELEASE. CLOSED TREE a=release
Tip revision: 054c33d
ScaledFontWin.cpp
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "ScaledFontWin.h"
#include "ScaledFontBase.h"

#ifdef USE_SKIA
#include "skia/SkTypeface_win.h"
#endif

namespace mozilla {
namespace gfx {

ScaledFontWin::ScaledFontWin(LOGFONT* aFont, Float aSize)
  : ScaledFontBase(aSize)
  , mLogFont(*aFont)
{
}

#ifdef USE_SKIA
SkTypeface* ScaledFontWin::GetSkTypeface()
{
  if (!mTypeface) {
    mTypeface = SkCreateTypefaceFromLOGFONT(mLogFont);
  }
  return mTypeface;
}
#endif


}
}
back to top