Commits

Anonymous committed 27f980f

avoid the confusion on pt and dpi

Comments (0)

Files changed (1)

  *
  * @param *context Context
  * @param *fontlist path to ttf file
+ * @param ptsize font size in points
  * @param *error output of error code on failure; simply ignored if error = NULL
  * @return GD_SUCCESS on success, otherwise GD_FAILURE.
  */
 	font_desc = g_strconcat(fcFamilyName.u.s, " ", buf, NULL);
 	context->font_desc = pango_font_description_from_string(font_desc);
 	g_free(font_desc);
-	gdPangoSetDpi(context, ptsize, ptsize);
 	r = GD_SUCCESS;
  fail1:
 	FcPatternDestroy(fcPattern);
  * @param *bbox gdBBox layout the resulting bounds
  * @param fg foreground color
  * @param *fontlist path to font file
- * @param ptsize font size
+ * @param ptsize font size in points
  * @param angle angle in radians
  * @param x top left corner
  * @param y top left corner