X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-font.h;h=6461451e6ca1d6f09c8be11ed0ce589917748a4c;hp=c80401198eb99d5c442450ef0b8176fe2c126754;hb=9012617eed6ae42908bbb15363cc9db49af44e2d;hpb=c8f181e1ca529f7d92ba638ccedadd7dd51be7eb diff --git a/dali-toolkit/internal/text/markup-processor-font.h b/dali-toolkit/internal/text/markup-processor-font.h index c804011..6461451 100644 --- a/dali-toolkit/internal/text/markup-processor-font.h +++ b/dali-toolkit/internal/text/markup-processor-font.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_FONT_H__ -#define __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_FONT_H__ +#ifndef DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_FONT_H +#define DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_FONT_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,14 +20,12 @@ namespace Dali { - namespace Toolkit { - namespace Text { - struct Tag; +struct Attribute; struct FontDescriptionRun; /** @@ -36,7 +34,47 @@ struct FontDescriptionRun; * @param[in] tag The font tag and its attributes. * @param[in,out] fontRun The font description run. */ -void ProcessFontTag( const Tag& tag, FontDescriptionRun& fontRun ); +void ProcessFontTag(const Tag& tag, FontDescriptionRun& fontRun); + +/** + * @brief Fill the font run with the font slant attribute value. + * + * @param[in] attribute the font slant attribute. + * @param[out] fontRun The font description run. + */ +void ProcessFontSlant(const Attribute& attribute, FontDescriptionRun& fontRun); + +/** + * @brief Fill the font run with the font width attribute value. + * + * @param[in] attribute the font width attribute. + * @param[out] fontRun The font description run. + */ +void ProcessFontWidth(const Attribute& attribute, FontDescriptionRun& fontRun); + +/** + * @brief Fill the font run with the font weight attribute value. + * + * @param[in] attribute the font weight attribute. + * @param[out] fontRun The font description run. + */ +void ProcessFontWeight(const Attribute& attribute, FontDescriptionRun& fontRun); + +/** + * @brief Fill the font run with the font size attribute value. + * + * @param[in] attribute the font size attribute. + * @param[out] fontRun The font description run. + */ +void ProcessFontSize(const Attribute& attribute, FontDescriptionRun& fontRun); + +/** + * @brief Fill the font run with the font family attribute value. + * + * @param[in] attribute the font family attribute. + * @param[out] fontRun The font description run. + */ +void ProcessFontFamily(const Attribute& attribute, FontDescriptionRun& fontRun); } // namespace Text @@ -44,4 +82,4 @@ void ProcessFontTag( const Tag& tag, FontDescriptionRun& fontRun ); } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_FONT_H__ +#endif // DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_FONT_H