Bump version to 4.1-6
[LibreOffice.git] / vcl / coretext / ctfonts.hxx
blob4e42c0fa501e5d7c2740e452758f0fde9ff98200
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #include "coretext/salgdi2.h"
20 #ifdef IOS
21 #include "headless/svpgdi.hxx"
22 #endif
23 #include "sallayout.hxx"
25 class CTTextStyle
26 : public ImplMacTextStyle
28 public:
29 explicit CTTextStyle( const FontSelectPattern& );
30 virtual ~CTTextStyle( void );
32 virtual SalLayout* GetTextLayout( void ) const;
34 virtual void GetFontMetric( float fDPIY, ImplFontMetricData& ) const;
35 virtual bool GetGlyphBoundRect( sal_GlyphId, Rectangle& ) const;
36 virtual bool GetGlyphOutline( sal_GlyphId, basegfx::B2DPolyPolygon& ) const;
38 virtual void SetTextColor( const RGBAColor& );
40 private:
41 /// CoreText text style object
42 CFMutableDictionaryRef mpStyleDict;
44 friend class CTLayout;
45 CFMutableDictionaryRef GetStyleDict( void ) const { return mpStyleDict; }
48 // CoreText specific physically available font face
49 class CTFontData
50 : public ImplMacFontData
52 public:
53 explicit CTFontData( const ImplDevFontAttributes&, sal_IntPtr nFontId );
54 explicit CTFontData( CTFontDescriptorRef pFontDesc );
55 virtual ~CTFontData( void );
56 virtual PhysicalFontFace* Clone( void ) const;
58 virtual ImplMacTextStyle* CreateMacTextStyle( const FontSelectPattern& ) const;
59 virtual ImplFontEntry* CreateFontInstance( /*const*/ FontSelectPattern& ) const;
60 virtual int GetFontTable( const char pTagName[5], unsigned char* ) const;
63 SystemFontList* GetCoretextFontList(void);
64 ImplDevFontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef, bool* );
66 // =======================================================================