summaryrefslogtreecommitdiff
path: root/fofi
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-09-23 01:22:32 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-09-23 01:22:47 +0200
commite67e88b393778d81a0ab50aa1faf2b598db98749 (patch)
tree0d99fb2eb64704b4f701d81b1cd95dca55f1f83e /fofi
parentf4800bffe2756a64cba03cb1a017bfacad63fdb0 (diff)
FoFiTrueType: some more const
Diffstat (limited to 'fofi')
-rw-r--r--fofi/FoFiTrueType.cc12
-rw-r--r--fofi/FoFiTrueType.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
index 0501615f..9b25bb60 100644
--- a/fofi/FoFiTrueType.cc
+++ b/fofi/FoFiTrueType.cc
@@ -518,7 +518,7 @@ void FoFiTrueType::getFontMatrix(double *mat) {
delete ff;
}
-void FoFiTrueType::convertToType42(char *psName, char **encoding,
+void FoFiTrueType::convertToType42(const char *psName, char **encoding,
int *codeToGID,
FoFiOutputFunc outputFunc,
void *outputStream) {
@@ -559,7 +559,7 @@ void FoFiTrueType::convertToType42(char *psName, char **encoding,
(*outputFunc)(outputStream, "FontName currentdict end definefont pop\n", 40);
}
-void FoFiTrueType::convertToType1(char *psName, const char **newEncoding,
+void FoFiTrueType::convertToType1(const char *psName, const char **newEncoding,
GBool ascii, FoFiOutputFunc outputFunc,
void *outputStream) {
char *start;
@@ -576,7 +576,7 @@ void FoFiTrueType::convertToType1(char *psName, const char **newEncoding,
delete ff;
}
-void FoFiTrueType::convertToCIDType2(char *psName,
+void FoFiTrueType::convertToCIDType2(const char *psName,
int *cidMap, int nCIDs,
GBool needVerticalMetrics,
FoFiOutputFunc outputFunc,
@@ -706,7 +706,7 @@ void FoFiTrueType::convertToCIDType2(char *psName,
56);
}
-void FoFiTrueType::convertToCIDType0(char *psName, int *cidMap, int nCIDs,
+void FoFiTrueType::convertToCIDType0(const char *psName, int *cidMap, int nCIDs,
FoFiOutputFunc outputFunc,
void *outputStream) {
char *start;
@@ -723,7 +723,7 @@ void FoFiTrueType::convertToCIDType0(char *psName, int *cidMap, int nCIDs,
delete ff;
}
-void FoFiTrueType::convertToType0(char *psName, int *cidMap, int nCIDs,
+void FoFiTrueType::convertToType0(const char *psName, int *cidMap, int nCIDs,
GBool needVerticalMetrics,
int *maxValidGlyph,
FoFiOutputFunc outputFunc,
@@ -838,7 +838,7 @@ void FoFiTrueType::convertToType0(char *psName, int *cidMap, int nCIDs,
(*outputFunc)(outputStream, "FontName currentdict end definefont pop\n", 40);
}
-void FoFiTrueType::convertToType0(char *psName, int *cidMap, int nCIDs,
+void FoFiTrueType::convertToType0(const char *psName, int *cidMap, int nCIDs,
FoFiOutputFunc outputFunc,
void *outputStream) {
char *start;
diff --git a/fofi/FoFiTrueType.h b/fofi/FoFiTrueType.h
index 02d611d2..269880da 100644
--- a/fofi/FoFiTrueType.h
+++ b/fofi/FoFiTrueType.h
@@ -111,7 +111,7 @@ public:
// If <encoding> is NULL, the encoding is unknown or undefined. The
// <codeToGID> array specifies the mapping from char codes to GIDs.
// (Not useful for OpenType CFF fonts.)
- void convertToType42(char *psName, char **encoding,
+ void convertToType42(const char *psName, char **encoding,
int *codeToGID,
FoFiOutputFunc outputFunc, void *outputStream);
@@ -122,7 +122,7 @@ public:
// otherwise it will be left as binary data. If <psName> is
// non-NULL, it will be used as the PostScript font name. (Only
// useful for OpenType CFF fonts.)
- void convertToType1(char *psName, const char **newEncoding, GBool ascii,
+ void convertToType1(const char *psName, const char **newEncoding, GBool ascii,
FoFiOutputFunc outputFunc, void *outputStream);
// Convert to a Type 2 CIDFont, suitable for embedding in a
@@ -130,14 +130,14 @@ public:
// name (so we don't need to depend on the 'name' table in the
// font). The <cidMap> array maps CIDs to GIDs; it has <nCIDs>
// entries. (Not useful for OpenType CFF fonts.)
- void convertToCIDType2(char *psName, int *cidMap, int nCIDs,
+ void convertToCIDType2(const char *psName, int *cidMap, int nCIDs,
GBool needVerticalMetrics,
FoFiOutputFunc outputFunc, void *outputStream);
// Convert to a Type 0 CIDFont, suitable for embedding in a
// PostScript file. <psName> will be used as the PostScript font
// name. (Only useful for OpenType CFF fonts.)
- void convertToCIDType0(char *psName, int *cidMap, int nCIDs,
+ void convertToCIDType0(const char *psName, int *cidMap, int nCIDs,
FoFiOutputFunc outputFunc, void *outputStream);
// Convert to a Type 0 (but non-CID) composite font, suitable for
@@ -145,7 +145,7 @@ public:
// PostScript font name (so we don't need to depend on the 'name'
// table in the font). The <cidMap> array maps CIDs to GIDs; it has
// <nCIDs> entries. (Not useful for OpenType CFF fonts.)
- void convertToType0(char *psName, int *cidMap, int nCIDs,
+ void convertToType0(const char *psName, int *cidMap, int nCIDs,
GBool needVerticalMetrics,
int *maxValidGlyph,
FoFiOutputFunc outputFunc, void *outputStream);
@@ -153,7 +153,7 @@ public:
// Convert to a Type 0 (but non-CID) composite font, suitable for
// embedding in a PostScript file. <psName> will be used as the
// PostScript font name. (Only useful for OpenType CFF fonts.)
- void convertToType0(char *psName, int *cidMap, int nCIDs,
+ void convertToType0(const char *psName, int *cidMap, int nCIDs,
FoFiOutputFunc outputFunc, void *outputStream);
// Returns a pointer to the CFF font embedded in this OpenType font.