Add font size configuation file 57/295757/1 accepted/tizen/unified/20230720.164620
authorJinWang An <jinwang.an@samsung.com>
Thu, 13 Jul 2023 08:36:05 +0000 (17:36 +0900)
committerJinWang An <jinwang.an@samsung.com>
Thu, 13 Jul 2023 08:36:05 +0000 (17:36 +0900)
commiteb81c294532468c1fbe38c157a360cc2a9b135a5
tree8422ed51e4a3b1b2e9e65b846e6fa2decf7701e3
parent014ec1f3d1434e204aed57d782396812c1ff5366
Add font size configuation file

To support different variable product, font_scale.json is added.
With %config option in .spec file, the font_scale.json can be
uploaded only when there is no the font_scale.json in /etc.

In font_scale.json, there are 5 grade of font size, below.

$ cat /etc/font_scale.json
{
        "SMALL"  : -80,
        "NORMAL" : -100,
        "LARGE"  : -150,
        "HUGE"   : -190,
        "GIANT"  : -250
}

-80 means that 80% font scale of each application font size.
Each grade is mapping, below.

SYSTEM_SETTINGS_FONT_SIZE_SMALL == "SMALL" in font_scale.json value
SYSTEM_SETTINGS_FONT_SIZE_NORMAL == "NORMAL" in font_scale.json value
SYSTEM_SETTINGS_FONT_SIZE_LARGE == "LARGE" in font_scale.json value
SYSTEM_SETTINGS_FONT_SIZE_HUGE == "HUGE" in font_scale.json value
SYSTEM_SETTINGS_FONT_SIZE_GIANT == "GIANT" in font_scale.json value

Change-Id: I1fba03154630f41544dca8ef49595e9226724baf
Signed-off-by: JinWang An <jinwang.an@samsung.com>
14 files changed:
conf_example/font_scale.json [new file with mode: 0644]
libutil/CMakeLists.txt
libutil/sstu.c
packaging/capi-system-system-settings.spec
tests/20200723_backup.patch [new file with mode: 0644]
tests/CMakeLists.txt
tests/CMakeLists.txt.backup [new file with mode: 0644]
tests/res/font_scale_giant_error.json [new file with mode: 0644]
tests/res/font_scale_huge_error.json [new file with mode: 0644]
tests/res/font_scale_large_error.json [new file with mode: 0644]
tests/res/font_scale_normal_error.json [new file with mode: 0644]
tests/res/font_scale_small_error.json [new file with mode: 0644]
tests/sst_gtest_err_font.cpp [new file with mode: 0644]
tests/sst_gtest_normal_font.cpp