1# ArkGraphics2D Changelog 2 3## cl.arkgraphics2d.1 New Line Height Calculation Rule Can Be Enabled By Configuring ohos.graphics2d.text.adapter_text_height Under metadata in Any Module 4 5**Access Level** 6 7Public API 8 9**Reason for Change** 10 11In the prior revision where [the **ohos.graphics2d.text.adapter_text_height** field was added to the **metadata** tag of the main module to enable the new line height calculation rule globally](../OpenHarmony_5.0.0.46/changelogs-arkgraphics2d.md), the field setting must be placed exclusively within the main module. However, some applications do not have a main module configuration file and therefore are unable to use the new line height calculation rule. To address this issue, the restriction is removed, allowing the new line height calculation rule to be activated by simply including the setting in the configuration file of any module within the application. 12 13**Change Impact** 14 15This change is a compatible change. 16 17To enable the new line height calculation rule for the application, you can configure the **ohos.graphics2d.text.adapter_text_height** field under the [**metadata** tag in the module.json5 file](../../../application-dev/quick-start/module-configuration-file.md#metadata) of any module. 18 19```json 20{ 21 "module": { 22 "name": "test", 23 "type": "entry", 24 "metadata": [ 25 { 26 "name": "ohos.graphics2d.text.adapter_text_height", 27 } 28 ] 29 } 30} 31``` 32 33After the application is started, an INFO log is generated. If the log contains "Adapter text height enabled: 1", the new line height calculation rule is enabled. In other cases, the default rule is used. 34 35**Start API Level** 36 3713 38 39**Change Since** 40 41OpenHarmony SDK 5.0.0.53 42 43**Key API/Component Changes** 44 45N/A 46 47**Adaptation Guide** 48 49This update removes the restriction that the new line height calculation rule can be activated only by configuring **ohos.graphics2d.text.adapter_text_height** within the main module. If you have already carried out this setting in the main module, no modification is required. 50