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 <sal/config.h>
22 #include <vcl/sysdata.hxx>
23 #include <vcl/fontcharmap.hxx>
25 #include <unx/salgdi.h>
26 #include <textrender.hxx>
27 #include <sallayout.hxx>
29 void X11SalGraphics::DrawTextLayout(const GenericSalLayout
& rLayout
)
31 mxTextRenderImpl
->DrawTextLayout(rLayout
, *this);
34 FontCharMapRef
X11SalGraphics::GetFontCharMap() const
36 return mxTextRenderImpl
->GetFontCharMap();
39 bool X11SalGraphics::GetFontCapabilities(vcl::FontCapabilities
&rGetImplFontCapabilities
) const
41 return mxTextRenderImpl
->GetFontCapabilities(rGetImplFontCapabilities
);
45 void X11SalGraphics::SetFont(LogicalFontInstance
* pEntry
, int nFallbackLevel
)
47 mxTextRenderImpl
->SetFont(pEntry
, nFallbackLevel
);
51 X11SalGraphics::SetTextColor( Color nColor
)
53 mxTextRenderImpl
->SetTextColor(nColor
);
56 bool X11SalGraphics::AddTempDevFont( vcl::font::PhysicalFontCollection
* pFontCollection
,
57 const OUString
& rFileURL
,
58 const OUString
& rFontName
)
60 return mxTextRenderImpl
->AddTempDevFont(pFontCollection
, rFileURL
, rFontName
);
63 void X11SalGraphics::ClearDevFontCache()
65 mxTextRenderImpl
->ClearDevFontCache();
68 void X11SalGraphics::GetDevFontList( vcl::font::PhysicalFontCollection
* pFontCollection
)
70 mxTextRenderImpl
->GetDevFontList(pFontCollection
);
74 X11SalGraphics::GetFontMetric( FontMetricDataRef
&rxFontMetric
, int nFallbackLevel
)
76 mxTextRenderImpl
->GetFontMetric(rxFontMetric
, nFallbackLevel
);
79 std::unique_ptr
<GenericSalLayout
> X11SalGraphics::GetTextLayout(int nFallbackLevel
)
81 return mxTextRenderImpl
->GetTextLayout(nFallbackLevel
);
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */