summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-Output.cpp5
-rw-r--r--src/libnrtype/Layout-TNG.h2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/libnrtype/Layout-TNG-Output.cpp b/src/libnrtype/Layout-TNG-Output.cpp
index f34b93d6e..836b86939 100644
--- a/src/libnrtype/Layout-TNG-Output.cpp
+++ b/src/libnrtype/Layout-TNG-Output.cpp
@@ -15,9 +15,6 @@
#include "print.h"
#include "extension/print.h"
#include "livarot/Path.h"
-#include "libnr/nr-matrix-fns.h"
-#include "libnr/nr-scale-matrix-ops.h"
-#include "libnr/nr-convert2geom.h"
#include "font-instance.h"
#include "svg/svg-length.h"
#include "extension/internal/cairo-render-context.h"
@@ -288,7 +285,7 @@ void Layout::showGlyphs(CairoRenderContext *ctx) const
}
} while (glyph_index < _glyphs.size()
&& _path_fitted == NULL
- && NR::transform_equalp(font_matrix, glyph_matrix, NR_EPSILON)
+ && (font_matrix * glyph_matrix.inverse()).isIdentity()
&& _characters[_glyphs[glyph_index].in_character].in_span == this_span_index);
// remove vertical flip
diff --git a/src/libnrtype/Layout-TNG.h b/src/libnrtype/Layout-TNG.h
index 0a2463a56..1f82aab97 100644
--- a/src/libnrtype/Layout-TNG.h
+++ b/src/libnrtype/Layout-TNG.h
@@ -14,8 +14,6 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-#include <libnr/nr-matrix-ops.h>
-#include <libnr/nr-rotate-ops.h>
#include <libnr/nr-rect.h>
#include <2geom/d2.h>
#include <2geom/matrix.h>