1 /* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef C_INCLUDE_DRAWING_FONT_COLLECTION_H 17 #define C_INCLUDE_DRAWING_FONT_COLLECTION_H 18 19 /** 20 * @addtogroup Drawing 21 * @{ 22 * 23 * @brief Provides the 2D drawing capability. 24 * 25 * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing 26 * 27 * @since 8 28 * @version 1.0 29 */ 30 31 /** 32 * @file drawing_font_collection.h 33 * 34 * @brief Declares functions related to <b>FontCollection</b> in the drawing module. 35 * 36 * @since 8 37 * @version 1.0 38 */ 39 40 #include "drawing_text_declaration.h" 41 42 #ifdef __cplusplus 43 extern "C" { 44 #endif 45 /** 46 * @brief Creates an <b>OH_Drawing_FontCollection</b> object. 47 * 48 * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing 49 * @return Returns the pointer to the <b>OH_Drawing_FontCollection</b> object created. 50 * @since 8 51 * @version 1.0 52 */ 53 OH_Drawing_FontCollection* OH_Drawing_CreateFontCollection(void); 54 55 /** 56 * @brief Releases the memory occupied by an <b>OH_Drawing_FontCollection</b> object. 57 * 58 * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing 59 * @param OH_Drawing_FontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object. 60 * @since 8 61 * @version 1.0 62 */ 63 void OH_Drawing_DestroyFontCollection(OH_Drawing_FontCollection*); 64 65 #ifdef __cplusplus 66 } 67 #endif 68 /** @} */ 69 #endif