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:
Khaled Hosny
2026-04-16 21:34:01 +02:00
committed by Khaled Hosny
parent b63e9bc4dc
commit 726b4c9959
3 changed files with 0 additions and 20 deletions
-1
View File
@@ -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
-8
View File
@@ -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;
-11
View File
@@ -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 )