diff --git a/graphic/graphic_2d/native_drawing/drawing_canvas.h b/graphic/graphic_2d/native_drawing/drawing_canvas.h index 10824c04c8f0eebe2111022d16d5d3b082d7bd0c..8f515031b2516c872b14e812a500cd1920a451ce 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 cf187736558372d7ca3989b87fdfab5c0ec065d0..69fb717ce7e1a9dd83bc71c2b81b36a0547c2274 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 ae8ba792b924e1a8e4364f459f528112b98a5419..b7a932c179f98c04ef34e2a070a4b5637e251d98 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" }, {