vcl: Remove TTGlobalFontInfo and getGlobalFontInfo()
Change-Id: I62d02b57a84f5a2ac6cf1b5964c394796d6e5db3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203708 Tested-by: Jenkins Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
This commit is contained in:
committed by
Khaled Hosny
parent
b63e9bc4dc
commit
726b4c9959
@@ -50,7 +50,6 @@ namespace basegfx {
|
||||
namespace vcl
|
||||
{
|
||||
class FileDefinitionWidgetDraw;
|
||||
typedef struct TTGlobalFontInfo_ TTGlobalFontInfo;
|
||||
}
|
||||
|
||||
typedef sal_Unicode sal_Ucs; // TODO: use sal_UCS4 instead of sal_Unicode
|
||||
|
||||
@@ -55,13 +55,6 @@
|
||||
namespace vcl
|
||||
{
|
||||
|
||||
/** Return value of TrueTypeFont::getGlobalFontInfo() */
|
||||
|
||||
typedef struct TTGlobalFontInfo_ {
|
||||
bool microsoftSymbolEncoded = false; /**< true: MS symbol encoded */
|
||||
} TTGlobalFontInfo;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Some table OS/2 consts
|
||||
@@ -312,7 +305,6 @@ public:
|
||||
|
||||
OUString getFamilyName() const;
|
||||
OUString getSubfamilyName() const;
|
||||
TTGlobalFontInfo getGlobalFontInfo() const;
|
||||
sal_uInt32 countNonEmptyGlyphs() const;
|
||||
FontWeight getFontWeight() const;
|
||||
FontWidth getFontWidth() const;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <hb-ot.h>
|
||||
#include <sft.hxx>
|
||||
#include <font/TTFStructure.hxx>
|
||||
#include <impfontcharmap.hxx>
|
||||
#ifdef SYSTEM_LIBFIXMATH
|
||||
#include <libfixmath/fix16.hpp>
|
||||
#else
|
||||
@@ -152,16 +151,6 @@ OUString TrueTypeFont::getSubfamilyName() const
|
||||
return getName(HB_OT_NAME_ID_FONT_SUBFAMILY);
|
||||
}
|
||||
|
||||
TTGlobalFontInfo TrueTypeFont::getGlobalFontInfo() const
|
||||
{
|
||||
TTGlobalFontInfo info;
|
||||
|
||||
auto aCmap = getTable(T_cmap);
|
||||
if (!aCmap.empty())
|
||||
info.microsoftSymbolEncoded = HasMicrosoftSymbolCmap(aCmap.data(), aCmap.size());
|
||||
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
static FontWeight ImplWeightToSal( float nWeight )
|
||||
|
||||
Reference in New Issue
Block a user