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 #include "coretext/salgdi2.h"
22 #include "headless/svpgdi.hxx"
24 #include "sallayout.hxx"
27 : public ImplMacTextStyle
30 explicit CTTextStyle( const FontSelectPattern
& );
31 virtual ~CTTextStyle( void );
33 virtual SalLayout
* GetTextLayout( void ) const;
35 virtual void GetFontMetric( float fDPIY
, ImplFontMetricData
& ) const;
36 virtual bool GetGlyphBoundRect( sal_GlyphId
, Rectangle
& ) const;
37 virtual bool GetGlyphOutline( sal_GlyphId
, basegfx::B2DPolyPolygon
& ) const;
39 virtual void SetTextColor( const RGBAColor
& );
42 /// CoreText text style object
43 CFMutableDictionaryRef mpStyleDict
;
45 friend class CTLayout
;
46 CFMutableDictionaryRef
GetStyleDict( void ) const { return mpStyleDict
; }
49 // CoreText specific physically available font face
51 : public ImplMacFontData
54 explicit CTFontData( const ImplDevFontAttributes
&, sal_IntPtr nFontId
);
55 explicit CTFontData( CTFontDescriptorRef pFontDesc
);
56 virtual ~CTFontData( void );
57 virtual PhysicalFontFace
* Clone( void ) const;
59 virtual ImplMacTextStyle
* CreateMacTextStyle( const FontSelectPattern
& ) const;
60 virtual ImplFontEntry
* CreateFontInstance( /*const*/ FontSelectPattern
& ) const;
61 virtual int GetFontTable( const char pTagName
[5], unsigned char* ) const;
64 SystemFontList
* GetCoretextFontList(void);
65 ImplDevFontAttributes
DevFontFromCTFontDescriptor( CTFontDescriptorRef
, bool* );
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */