summaryrefslogtreecommitdiff
path: root/vcl/source/fontsubset/sft.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/fontsubset/sft.cxx')
-rw-r--r--vcl/source/fontsubset/sft.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 7b905f558051..5efdf3230977 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -64,8 +64,6 @@ enum PathSegmentType {
PS_CLOSEPATH = 4
};
-}
-
struct PSPathElement
{
PathSegmentType type;
@@ -107,6 +105,8 @@ struct GlyphOffsets {
sal_uInt32 *offs; /* array of nGlyphs offsets */
};
+}
+
static void *smalloc(size_t size)
{
void *res = malloc(size);
@@ -1042,6 +1042,8 @@ static sal_uInt32 getGlyph0(const sal_uInt8* cmap, sal_uInt32, sal_uInt32 c) {
}
}
+namespace {
+
struct subHeader2 {
sal_uInt16 const firstCode;
sal_uInt16 const entryCount;
@@ -1049,6 +1051,8 @@ struct subHeader2 {
sal_uInt16 idRangeOffset;
};
+}
+
static sal_uInt32 getGlyph2(const sal_uInt8 *cmap, const sal_uInt32 nMaxCmapSize, sal_uInt32 c) {
sal_uInt16 const *CMAP2 = reinterpret_cast<sal_uInt16 const *>(cmap);
sal_uInt8 theHighByte;