From b01d180cd9d2f2be074b08a17a1fda75d8ca1cce Mon Sep 17 00:00:00 2001 From: wanyanglan Date: Wed, 4 Jun 2025 17:08:43 +0800 Subject: [PATCH] =?UTF-8?q?Font=E5=92=8CCanvas=E9=83=A8=E5=88=86NDK?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=89=88=E6=9C=AC=E6=9B=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?19.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wanyanglan Change-Id: Ie2cbb016e7eeb1e22f6211f82c341ad6583d2098 --- graphic/graphic_2d/native_drawing/drawing_canvas.h | 2 +- graphic/graphic_2d/native_drawing/drawing_font.h | 14 +++++++------- .../native_drawing/libnative_drawing.ndk.json | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_canvas.h b/graphic/graphic_2d/native_drawing/drawing_canvas.h index 10824c04c..8f515031b 100644 --- a/graphic/graphic_2d/native_drawing/drawing_canvas.h +++ b/graphic/graphic_2d/native_drawing/drawing_canvas.h @@ -926,7 +926,7 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasDrawRecordCmd(OH_Drawing_Canvas* canvas, O * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or recordCmd is nullptr. - * @since 20 + * @since 19 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_CanvasDrawRecordCmdNesting(OH_Drawing_Canvas* canvas, OH_Drawing_RecordCmd* recordCmd); diff --git a/graphic/graphic_2d/native_drawing/drawing_font.h b/graphic/graphic_2d/native_drawing/drawing_font.h index cf1877365..69fb717ce 100644 --- a/graphic/graphic_2d/native_drawing/drawing_font.h +++ b/graphic/graphic_2d/native_drawing/drawing_font.h @@ -296,7 +296,7 @@ OH_Drawing_ErrorCode OH_Drawing_FontMeasureText(const OH_Drawing_Font* font, con * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, text * and textWidth is nullptr or byteLength is 0 or brush and pen are both not empty. - * @since 20 + * @since 19 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_FontMeasureTextWithBrushOrPen(const OH_Drawing_Font* font, const void* text, @@ -304,7 +304,7 @@ OH_Drawing_ErrorCode OH_Drawing_FontMeasureTextWithBrushOrPen(const OH_Drawing_F OH_Drawing_Rect* bounds, float* textWidth); /** - * @brief Retrieves the advance and bounding box for each glyph in glyphs + * @brief Retrieves the advance and bounding box for each glyph in glyphs. * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param font Indicates the pointer to an OH_Drawing_Font object. @@ -313,12 +313,12 @@ OH_Drawing_ErrorCode OH_Drawing_FontMeasureTextWithBrushOrPen(const OH_Drawing_F * @param brush Indicates the pointer to an OH_Drawing_Brush object. * @param pen Indicates the pointer to an OH_Drawing_Pen object. * @param widths Indicates the text advances for each glyph returned to the caller. - * @param bounds Indicates the text bounding box for each glyph returned to caller. + * @param bounds Indicates the text bounding box for each glyph returned to the caller. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font and glyphs is nullptr * or count is no larger than 0 or brush and pen are both not empty. - * @since 20 + * @since 19 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_FontGetWidthsBounds(const OH_Drawing_Font* font, const uint16_t* glyphs, int count, @@ -336,8 +336,8 @@ OH_Drawing_ErrorCode OH_Drawing_FontGetWidthsBounds(const OH_Drawing_Font* font, * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, glyphs and points is nullptr or - * count is not larger than 0. - * @since 20 + * count is no larger than 0. + * @since 19 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_FontGetPos(const OH_Drawing_Font* font, const uint16_t* glyphs, int count, @@ -352,7 +352,7 @@ OH_Drawing_ErrorCode OH_Drawing_FontGetPos(const OH_Drawing_Font* font, const ui * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font and spacing is nullptr. - * @since 20 + * @since 19 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_FontGetSpacing(const OH_Drawing_Font* font, float* spacing); diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json index ae8ba792b..b7a932c17 100644 --- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json +++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json @@ -283,19 +283,19 @@ "name": "OH_Drawing_FontMeasureText" }, { - "first_introduced": "20", + "first_introduced": "19", "name": "OH_Drawing_FontMeasureTextWithBrushOrPen" }, { - "first_introduced": "20", + "first_introduced": "19", "name": "OH_Drawing_FontGetWidthsBounds" }, { - "first_introduced": "20", + "first_introduced": "19", "name": "OH_Drawing_FontGetPos" }, { - "first_introduced": "20", + "first_introduced": "19", "name": "OH_Drawing_FontGetSpacing" }, { @@ -1895,7 +1895,7 @@ "name": "OH_Drawing_SetTypographyTextTrailingSpaceOptimized" }, { - "first_introduced": "20", + "first_introduced": "19", "name":"OH_Drawing_CanvasDrawRecordCmdNesting" }, { -- Gitee