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/.
11 #include <svtools/svtdllapi.h>
12 #include <rtl/ustring.hxx>
13 #include <unicode/uscript.h>
14 #include <vcl/fontcapabilities.hxx>
22 UScriptCode
otCoverageToScript(vcl::UnicodeCoverage::UnicodeCoverageEnum eOTCoverage
);
24 bool isSymbolFont(const vcl::Font
& rFont
);
26 bool canRenderNameOfSelectedFont(OutputDevice
const& rDevice
);
28 //These ones are typically for use in the font dropdown box beside the
29 //fontname, so say things roughly like "Script/Alphabet/Name-Of-Major-Language"
30 OUString
makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice
const& rDevice
);
31 OUString
makeShortRepresentativeTextForSelectedFont(OutputDevice
const& rDevice
);
32 OUString
makeShortRepresentativeTextForScript(UScriptCode eScript
);
33 //For the cases where the font doesn't fully support a script, but has partial support
35 OUString
makeShortMinimalTextForScript(UScriptCode eScript
);
37 //These ones are typically for use in the font preview window in format character
38 SVT_DLLPUBLIC OUString
makeRepresentativeTextForFont(sal_Int16 nScriptType
, const vcl::Font
& rFont
);
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */