diff --git a/graphic/graphic_2d/native_drawing/drawing_font.h b/graphic/graphic_2d/native_drawing/drawing_font.h
index 364ffb8869ea7e290fde8e37d615677a093076ac..0466bc02be8883f2a108ebe2e15b40cb5fd1cd37 100644
--- a/graphic/graphic_2d/native_drawing/drawing_font.h
+++ b/graphic/graphic_2d/native_drawing/drawing_font.h
@@ -552,6 +552,34 @@ OH_Drawing_ErrorCode OH_Drawing_FontGetPathForGlyph(const OH_Drawing_Font* font,
OH_Drawing_ErrorCode OH_Drawing_FontGetTextPath(const OH_Drawing_Font* font, const void* text, size_t byteLength,
OH_Drawing_TextEncoding encoding, float x, float y, OH_Drawing_Path* path);
+/**
+ * @brief Sets whether to follow the theme font when typeface is not set.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param cFont Indicates the pointer to an OH_Drawing_Font object.
+ * @param followed Indicates whether to follow the theme font when typeface is not set.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if cFont is nullptr.
+ * @since 16
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontSetThemeFontFollowed(OH_Drawing_Font* cFont, bool followed);
+
+/**
+ * @brief Gets whether to follow the theme font when typeface is not set.
+ *
+ * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
+ * @param cFont Indicates the pointer to an OH_Drawing_Font object.
+ * @param followed Indicates whether to follow the theme font when typeface is not set.
+ * @return Returns the error code.
+ * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.
+ * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if cFont or followed is nullptr.
+ * @since 16
+ * @version 1.0
+ */
+OH_Drawing_ErrorCode OH_Drawing_FontIsThemeFontFollowed(const OH_Drawing_Font* cFont, bool* followed);
+
#ifdef __cplusplus
}
#endif
diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
index 82740916529eb02214fdb23d47dee984f6cd3c4d..c33c60140398794fa3a26c27829c0f0e71ebb765 100644
--- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
+++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json
@@ -238,6 +238,10 @@
"first_introduced": "12",
"name": "OH_Drawing_FontIsSubpixel"
},
+ {
+ "first_introduced": "16",
+ "name": "OH_Drawing_FontIsThemeFontFollowed"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_FontMeasureSingleCharacter"
@@ -276,6 +280,10 @@
"first_introduced": "12",
"name": "OH_Drawing_FontSetSubpixel"
},
+ {
+ "first_introduced": "16",
+ "name": "OH_Drawing_FontSetThemeFontFollowed"
+ },
{
"first_introduced": "12",
"name": "OH_Drawing_FontTextToGlyphs"