Changed signed to unsigned for glyph indices
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
diff --git a/include/FTCharmap.h b/include/FTCharmap.h
index 30a07c1..74ca6f2 100644
--- a/include/FTCharmap.h
+++ b/include/FTCharmap.h
@@ -78,7 +78,7 @@ class FTGL_EXPORT FTCharmap
* @return The FTGlyphContainer index for the character or zero
* if it wasn't found
*/
- signed int GlyphListIndex( const unsigned int characterCode);
+ unsigned int GlyphListIndex( const unsigned int characterCode);
/**
* Get the font glyph index of the input character.
@@ -87,7 +87,7 @@ class FTGL_EXPORT FTCharmap
* the current encoding eg apple roman.
* @return The glyph index for the character.
*/
- signed int FontIndex( const unsigned int characterCode);
+ unsigned int FontIndex( const unsigned int characterCode);
/**
* Set the FTGlyphContainer index of the character code.
diff --git a/include/FTGlyphContainer.h b/include/FTGlyphContainer.h
index 35ebc79..de668b6 100755
--- a/include/FTGlyphContainer.h
+++ b/include/FTGlyphContainer.h
@@ -51,7 +51,7 @@ class FTGL_EXPORT FTGlyphContainer
* current encoding eg apple roman.
* @return The font index for the character.
*/
- signed int FontIndex( const unsigned int characterCode ) const;
+ unsigned int FontIndex( const unsigned int characterCode ) const;
/**
* Adds a glyph to this glyph list.
diff --git a/src/FTCharmap.cpp b/src/FTCharmap.cpp
index 07ffac6..f2400ee 100644
--- a/src/FTCharmap.cpp
+++ b/src/FTCharmap.cpp
@@ -44,13 +44,13 @@ bool FTCharmap::CharMap( FT_Encoding encoding)
}
-signed int FTCharmap::GlyphListIndex( unsigned int characterCode )
+unsigned int FTCharmap::GlyphListIndex( unsigned int characterCode )
{
return charMap.find( characterCode);
}
-signed int FTCharmap::FontIndex( unsigned int characterCode )
+unsigned int FTCharmap::FontIndex( unsigned int characterCode )
{
return FT_Get_Char_Index( ftFace, characterCode);
}
diff --git a/src/FTGlyphContainer.cpp b/src/FTGlyphContainer.cpp
index 5bd4a40..2c1881b 100755
--- a/src/FTGlyphContainer.cpp
+++ b/src/FTGlyphContainer.cpp
@@ -34,7 +34,7 @@ bool FTGlyphContainer::CharMap( FT_Encoding encoding)
}
-signed int FTGlyphContainer::FontIndex( const unsigned int characterCode) const
+unsigned int FTGlyphContainer::FontIndex( const unsigned int characterCode) const
{
return charMap->FontIndex( characterCode);
}