summaryrefslogtreecommitdiff
path: root/poppler/PSOutputDev.cc
diff options
context:
space:
mode:
authorOliver Sander <oliver.sander@tu-dresden.de>2022-03-14 09:59:02 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2022-03-18 16:29:26 +0000
commit6da92d028268aa92ed955905551bcc6c5acb26e4 (patch)
tree5b18ec0370ee93f79c7c3dcf9bc7fa66ee85dbed /poppler/PSOutputDev.cc
parenta246b6f16b990b1e448265e390dc718f0c5eb927 (diff)
Pass around font memory buffers as unsigned char
In FoFiBase, the memory buffer for fonts is stored as unsigned char. At the same time, the code in Stream hands out memory as unsigned char. Yet, the pointers to this memory is then casted to signed char, and passed around as that. This commit removes some of this casting, and uses more unsigned chars.
Diffstat (limited to 'poppler/PSOutputDev.cc')
-rw-r--r--poppler/PSOutputDev.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 2e3c9124..da12142b 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -2374,7 +2374,7 @@ void PSOutputDev::setupExternalType1Font(const GooString *fileName, GooString *p
void PSOutputDev::setupEmbeddedType1CFont(GfxFont *font, Ref *id, GooString *psName)
{
- char *fontBuf;
+ unsigned char *fontBuf;
int fontLen;
FoFiType1C *ffT1C;
int i;
@@ -2416,7 +2416,7 @@ void PSOutputDev::setupEmbeddedType1CFont(GfxFont *font, Ref *id, GooString *psN
void PSOutputDev::setupEmbeddedOpenTypeT1CFont(GfxFont *font, Ref *id, GooString *psName)
{
- char *fontBuf;
+ unsigned char *fontBuf;
int fontLen;
int i;
@@ -2458,7 +2458,7 @@ void PSOutputDev::setupEmbeddedOpenTypeT1CFont(GfxFont *font, Ref *id, GooString
void PSOutputDev::setupEmbeddedTrueTypeFont(GfxFont *font, Ref *id, GooString *psName)
{
- char *fontBuf;
+ unsigned char *fontBuf;
int fontLen;
int *codeToGID;
@@ -2580,7 +2580,7 @@ void PSOutputDev::setupExternalCIDTrueTypeFont(GfxFont *font, const GooString *f
void PSOutputDev::setupEmbeddedCIDType0Font(GfxFont *font, Ref *id, GooString *psName)
{
- char *fontBuf;
+ unsigned char *fontBuf;
int fontLen;
FoFiType1C *ffT1C;
int i;
@@ -2628,7 +2628,7 @@ void PSOutputDev::setupEmbeddedCIDType0Font(GfxFont *font, Ref *id, GooString *p
void PSOutputDev::setupEmbeddedCIDTrueTypeFont(GfxFont *font, Ref *id, GooString *psName, bool needVerticalMetrics)
{
- char *fontBuf;
+ unsigned char *fontBuf;
int fontLen;
// beginning comment
@@ -2659,7 +2659,7 @@ void PSOutputDev::setupEmbeddedCIDTrueTypeFont(GfxFont *font, Ref *id, GooString
void PSOutputDev::setupEmbeddedOpenTypeCFFFont(GfxFont *font, Ref *id, GooString *psName)
{
- char *fontBuf;
+ unsigned char *fontBuf;
int fontLen;
int i;