1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_UNX_CAIROFONTIMPL_HXX
21 #define INCLUDED_VCL_INC_UNX_CAIROFONTIMPL_HXX
25 #include <config_cairo_canvas.h>
28 class ImplFontMetricData
;
29 class ServerFontLayout
;
30 class PhysicalFontCollection
;
31 class PhysicalFontFace
;
36 virtual ~TextRenderImpl() {}
38 virtual void SetTextColor( SalColor nSalColor
) = 0;
39 virtual void SetFont( FontSelectPattern
*, int nFallbackLevel
) = 0;
40 virtual void GetFontMetric( ImplFontMetricDataPtr
&, int nFallbackLevel
) = 0;
41 virtual const FontCharMapPtr
GetFontCharMap() const = 0;
42 virtual bool GetFontCapabilities(vcl::FontCapabilities
&rFontCapabilities
) const = 0;
43 virtual void GetDevFontList( PhysicalFontCollection
* ) = 0;
44 virtual void ClearDevFontCache() = 0;
45 virtual bool AddTempDevFont( PhysicalFontCollection
*, const OUString
& rFileURL
, const OUString
& rFontName
) = 0;
46 virtual bool CreateFontSubset(
47 const OUString
& rToFile
,
48 const PhysicalFontFace
*,
49 const sal_GlyphId
* pGlyphIDs
,
50 const sal_uInt8
* pEncoding
,
53 FontSubsetInfo
& rInfo
) = 0;
55 virtual const Ucs2SIntMap
* GetFontEncodingVector( const PhysicalFontFace
*, const Ucs2OStrMap
** ppNonEncoded
, std::set
<sal_Unicode
> const** ppPriority
) = 0;
56 virtual const void* GetEmbedFontData(
57 const PhysicalFontFace
*,
58 const sal_Ucs
* pUnicodes
,
61 FontSubsetInfo
& rInfo
,
64 virtual void FreeEmbedFontData( const void* pData
, long nDataLen
) = 0;
65 virtual void GetGlyphWidths(
66 const PhysicalFontFace
*,
69 Ucs2UIntMap
& rUnicodeEnc
) = 0;
71 virtual bool GetGlyphBoundRect( sal_GlyphId nIndex
, Rectangle
& ) = 0;
72 virtual bool GetGlyphOutline( sal_GlyphId nIndex
, basegfx::B2DPolyPolygon
& ) = 0;
73 virtual SalLayout
* GetTextLayout( ImplLayoutArgs
&, int nFallbackLevel
) = 0;
74 virtual void DrawServerFontLayout( const ServerFontLayout
& ) = 0;
75 #if ENABLE_CAIRO_CANVAS
76 virtual SystemFontData
GetSysFontData( int nFallbackLevel
) const = 0;
77 #endif // ENABLE_CAIRO_CANVAS
82 /* vim:set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */