BuildRequires: dali-integration-devel
BuildRequires: pkgconfig(dali-core)
BuildRequires: pkgconfig(dali)
-BuildRequires: libxml2-devel
BuildRequires: cmake
BuildRequires: pkgconfig(ecore)
BuildRequires: dali-integration-devel
BuildRequires: pkgconfig(dali-core)
BuildRequires: pkgconfig(dali)
-BuildRequires: libxml2-devel
BuildRequires: cmake
}
/**
- * @copydoc PlatformAbstraction::GetDefaultFontDescription()
- */
-void TestPlatformAbstraction::GetDefaultFontDescription( std::string& family, std::string& style ) const
-{
- // TODO
-}
-
-/**
* @copydoc PlatformAbstraction::GetDefaultFontSize()
*/
int TestPlatformAbstraction::GetDefaultFontSize() const
virtual bool IsLoading();
/**
- * @copydoc PlatformAbstraction::GetDefaultFontDescription()
- */
- virtual void GetDefaultFontDescription( std::string& family, std::string& style ) const;
-
- /**
* @copydoc PlatformAbstraction::GetDefaultFontSize()
*/
virtual int GetDefaultFontSize() const;
$(ECORE_CFLAGS) \
$(ECORE_IPC_CFLAGS) \
$(DLOG_CFLAGS) \
- $(XML_CFLAGS) \
$(VCONF_CFLAGS) \
$(EXIF_CFLAGS) \
$(MMFSOUND_CFLAGS) \
$(ELEMENTARY_LIBS) \
$(ECORE_IPC_LIBS) \
$(DLOG_LIBS) \
- $(XML_LIBS) \
$(VCONF_LIBS) \
$(EXIF_LIBS) \
$(TTS_LIBS) \
PKG_CHECK_MODULES(FREETYPE_BITMAP_SUPPORT, [freetype2 >= $FREETYPE_BITMAP_SUPPORT_VERSION], [ freetype_bitmap_support=yes ], [ freetype_bitmap_support=no ] )
PKG_CHECK_MODULES(FONTCONFIG, fontconfig)
PKG_CHECK_MODULES(PNG, libpng)
-PKG_CHECK_MODULES(XML, libxml-2.0)
PKG_CHECK_MODULES(LIBEXIF, libexif)
PKG_CHECK_MODULES(LIBDRM, libdrm)
PKG_CHECK_MODULES(LIBCURL, libcurl)
BuildRequires: pkgconfig(utilX)
BuildRequires: dali-devel
BuildRequires: dali-integration-devel
-BuildRequires: libxml2-devel
BuildRequires: pkgconfig(vconf)
BuildRequires: tts-devel
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(evas)
BuildRequires: dali-devel
BuildRequires: dali-integration-devel
-BuildRequires: libxml2-devel
BuildRequires: vconf-devel
BuildRequires: vconf-keys-devel
BuildRequires: tts-devel
tizen_platform_abstraction_src_files = \
$(tizen_platform_abstraction_src_dir)/tizen-platform-abstraction.cpp \
$(tizen_platform_abstraction_src_dir)/tizen-logging.cpp \
- $(tizen_platform_abstraction_src_dir)/tizen-font-configuration-parser.cpp \
\
$(tizen_platform_abstraction_src_dir)/resource-loader/resource-loader.cpp \
$(tizen_platform_abstraction_src_dir)/resource-loader/resource-requester-base.cpp \
+++ /dev/null
-/*
- * Copyright (c) 2014 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include "tizen-font-configuration-parser.h"
-
-#include <sstream>
-#include <libxml/xmlmemory.h>
-#include <libxml/parser.h>
-
-#include <dali/integration-api/debug.h>
-
-namespace Dali
-{
-
-namespace TizenPlatform
-{
-
-namespace FontConfigurationParser
-{
-
-#if defined(DEBUG_ENABLED)
-namespace
-{
-Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_TIZEN_FONT_CONFIGURATION_PARSER");
-}
-#endif
-
-void Parse(std::string confFile, std::string& fontFamily, std::string& fontStyle)
-{
- bool familyParsed(false);
- bool styleParsed(false);
-
- if ( !confFile.empty() )
- {
- xmlDocPtr doc = xmlParseFile(confFile.c_str());
- if(doc == NULL)
- {
- DALI_LOG_ERROR("Document %s not parsed successfully.\n", confFile.c_str());
- return;
- }
-
- xmlNodePtr cur = xmlDocGetRootElement(doc);
- if(cur == NULL)
- {
- DALI_LOG_ERROR("%s is Empty\n", confFile.c_str());
- xmlFreeDoc(doc);
- return;
- }
-
- if(xmlStrcmp(cur->name, (const xmlChar *)"fontconfig"))
- {
- DALI_LOG_ERROR("Document %s is of the wrong type, root node != fontconfig\n", confFile.c_str());
- xmlFreeDoc(doc);
- return;
- }
-
- cur = cur->xmlChildrenNode;
-
- while(cur != NULL && !(familyParsed && styleParsed))
- {
- if((!xmlStrcmp(cur->name, (const xmlChar *)"match")))
- {
- xmlNodePtr cur2 = cur->xmlChildrenNode;
- while(cur2 != NULL && !(familyParsed && styleParsed))
- {
- if((!xmlStrcmp(cur2->name, (const xmlChar *)"edit")))
- {
- xmlChar* xmlValue = xmlGetProp( cur2, (const xmlChar *)"name" );
- if((!xmlStrcmp(xmlValue, (const xmlChar *)"family")))
- {
- xmlNodePtr cur3 = cur2->xmlChildrenNode;
- while(cur3 != NULL && !(familyParsed && styleParsed))
- {
- if((!xmlStrcmp(cur3->name, (const xmlChar *)"string")))
- {
- xmlChar* key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
- DALI_LOG_INFO(gLogFilter,Debug::Concise, "Document %s uses the following font family as default: %s\n", confFile.c_str(), key);
- std::stringstream str;
- str << key;
- fontFamily = str.str();
- xmlFree(key);
- familyParsed = true;
- break;
- }
- cur3 = cur3->next;
- }
- }
- else if((!xmlStrcmp(xmlValue, (const xmlChar *)"style")))
- {
- xmlNodePtr cur3 = cur2->xmlChildrenNode;
- while(cur3 != NULL && !(familyParsed && styleParsed))
- {
- if((!xmlStrcmp(cur3->name, (const xmlChar *)"string")))
- {
- xmlChar* key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
- DALI_LOG_INFO(gLogFilter,Debug::Concise, "Document %s uses the following font style as default: %s\n", confFile.c_str(), key);
- std::stringstream str;
- str << key;
- fontStyle = str.str();
- xmlFree(key);
- styleParsed = true;
- break;
- }
- cur3 = cur3->next;
- }
- }
- xmlFree( xmlValue );
- }
- cur2 = cur2->next;
- }
- }
- cur = cur->next;
- }
-
- xmlFreeDoc(doc);
- }
-}
-
-} // namespace FontConfParser
-
-} // namespace TizenPlatform
-
-} // namespace Dali
+++ /dev/null
-#ifndef __DALI_TIZEN_PLATFORM_FONT_CONFIGURATION_PARSER_H__
-#define __DALI_TIZEN_PLATFORM_FONT_CONFIGURATION_PARSER_H__
-
-/*
- * Copyright (c) 2014 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <string>
-
-namespace Dali
-{
-
-namespace TizenPlatform
-{
-
-namespace FontConfigurationParser
-{
-
-/**
- * Parses the given font configuration file and sets fontFamily accordingly.
- * @param[in] confFile The configuration file to parse.
- * @param[out] fontFamily This gets set with the default font family specified in the conf file.
- * @param[out] fontStyle This gets set with the default font style specified in the conf file.
- */
-void Parse(std::string confFile, std::string& fontFamily, std::string& fontStyle);
-
-} // namespace FontConfParser
-
-} // namespace TizenPlatform
-
-} // namespace Dali
-
-#endif // __DALI_TIZEN_PLATFORM_FONT_CONFIGURATION_PARSER_H__
// INTERNAL INCLUDES
#include "resource-loader/resource-loader.h"
-#include "tizen-font-configuration-parser.h"
#include "image-loaders/image-loader.h"
#include "portable/file-closer.h"
}
}
-void TizenPlatformAbstraction::GetDefaultFontDescription( std::string& fontFamily, std::string& fontStyle ) const
-{
- FontConfigurationParser::Parse(FONT_CONFIGURATION_FILE, fontFamily, fontStyle);
-}
-
int TizenPlatformAbstraction::GetDefaultFontSize() const
{
int fontSize( -1 );
virtual void JoinLoaderThreads();
/**
- * @copydoc PlatformAbstraction::GetDefaultFontDescription()
- */
- virtual void GetDefaultFontDescription( std::string& family, std::string& style ) const;
-
- /**
* @copydoc PlatformAbstraction::GetDefaultFontSize()
*/
virtual int GetDefaultFontSize() const;