summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-05-06 11:43:14 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-05-06 11:43:14 +0000
commit5e59ab63356c4c1d1575e7b0748c913b5a59bbf5 (patch)
treec2947295e676484c7cf44940dfec758fc019b102 /src/libnrtype
parentAdd basic SVG in OpenType support. (diff)
downloadinkscape-5e59ab63356c4c1d1575e7b0748c913b5a59bbf5.tar.gz
inkscape-5e59ab63356c4c1d1575e7b0748c913b5a59bbf5.zip
Possibly fix build on Windows.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/OpenTypeUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnrtype/OpenTypeUtil.cpp b/src/libnrtype/OpenTypeUtil.cpp
index eb2c22256..185d11004 100644
--- a/src/libnrtype/OpenTypeUtil.cpp
+++ b/src/libnrtype/OpenTypeUtil.cpp
@@ -371,11 +371,11 @@ void readOpenTypeSVGTable(const FT_Face ft_face,
// << " Offset: " << offsetGlyph << " Length: " << lengthGlyph << std::endl;
std::string svg;
- for (unsigned c = offsetGlyph; c < offsetGlyph + lengthGlyph; ++c) {
+ for (unsigned int c = offsetGlyph; c < offsetGlyph + lengthGlyph; ++c) {
svg += (char) data[offset + c];
}
- for (uint i = startGlyphID; i < endGlyphID+1; ++i) {
+ for (unsigned int i = startGlyphID; i < endGlyphID+1; ++i) {
glyphs[i].svg = svg;
}