Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed Jul 22, 2023
1 parent cebcda2 commit 3eba782
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions skia-adventure/ft2-demos-all-4-svg-hooks-skia-m110.diff
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ index 88edbec..ee6a937 100644
{
FT_String str[64] = "ftview (FreeType) ";
diff --git a/src/rsvg-port.c b/src/rsvg-port.c
index 959afe9..785cc93 100644
index 7a8bb9a..9f1c190 100644
--- a/src/rsvg-port.c
+++ b/src/rsvg-port.c
@@ -22,7 +22,12 @@
Expand Down Expand Up @@ -444,7 +444,7 @@ index 959afe9..785cc93 100644
/* Get attributes like `viewBox` and `width`/`height`. */
rsvg_handle_get_intrinsic_dimensions( handle,
&out_has_width,
@@ -280,6 +301,10 @@
@@ -274,6 +295,10 @@
/* Scale factors from SVG coordinates to the needed output size. */
x_svg_to_out = (double)metrics.x_ppem / dimension_svg.width;
y_svg_to_out = (double)metrics.y_ppem / dimension_svg.height;
Expand All @@ -454,8 +454,8 @@ index 959afe9..785cc93 100644
+#endif

/*
if ((out_has_viewbox != TRUE) &&
@@ -316,9 +341,18 @@
* Create a cairo recording surface. This is done for two reasons.
@@ -302,9 +327,18 @@
yy = (double)document->transform.yy / ( 1 << 16 );

x0 = (double)document->delta.x / 64 *
Expand All @@ -474,7 +474,7 @@ index 959afe9..785cc93 100644

/* Cairo stores both transformation and translation in one matrix. */
transform_matrix.xx = xx;
@@ -334,21 +368,34 @@
@@ -320,21 +354,34 @@
/* Set up a transformation matrix. */
cairo_transform( rec_cr, &transform_matrix );

Expand Down Expand Up @@ -509,15 +509,15 @@ index 959afe9..785cc93 100644
#if LIBRSVG_CHECK_VERSION( 2, 52, 0 )
{
RsvgRectangle viewport =
@@ -375,6 +422,7 @@
@@ -361,6 +408,7 @@
error = FT_Err_Invalid_SVG_Document;
goto CleanCairo;
}
+#endif

/* Get the bounding box of the drawing. */
cairo_recording_surface_ink_extents( state->rec_surface, &x, &y,
@@ -450,13 +498,19 @@
@@ -428,13 +476,19 @@

CleanLibrsvg:
/* Destroy the handle. */
Expand Down

0 comments on commit 3eba782

Please sign in to comment.