LibreOffice Module vcl (master) 1
vcl/inc/skia/win/font.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 */
10
11#pragma once
12
13#include <sal/config.h>
14
15#include <win/winlayout.hxx>
16
17#include <SkTypeface.h>
18
19// This class only adds SkTypeface in order to allow its caching.
21{
24
25public:
26 sk_sp<SkTypeface> GetSkiaTypeface() const { return m_skiaTypeface; }
27 bool GetSkiaDWrite() const { return m_skiaDWrite; }
28 void SetSkiaTypeface(const sk_sp<SkTypeface>& typeface, bool dwrite)
29 {
30 m_skiaTypeface = typeface;
31 m_skiaDWrite = dwrite;
32 }
33
34private:
36 sk_sp<SkTypeface> m_skiaTypeface;
38};
39
40/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sk_sp< SkTypeface > GetSkiaTypeface() const
sk_sp< SkTypeface > m_skiaTypeface
void SetSkiaTypeface(const sk_sp< SkTypeface > &typeface, bool dwrite)
rtl::Reference< LogicalFontInstance > CreateFontInstance(const vcl::font::FontSelectPattern &) const override
WinFontInstance(const WinFontFace &, const vcl::font::FontSelectPattern &)