projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Support custom fonts registration
[platform/core/uifw/dali-adaptor.git]
/
dali
/
devel-api
/
text-abstraction
/
font-client.h
diff --git
a/dali/devel-api/text-abstraction/font-client.h
b/dali/devel-api/text-abstraction/font-client.h
old mode 100644
(file)
new mode 100755
(executable)
index
8c8cfca
..
5cfe938
--- a/
dali/devel-api/text-abstraction/font-client.h
+++ b/
dali/devel-api/text-abstraction/font-client.h
@@
-2,7
+2,7
@@
#define DALI_PLATFORM_TEXT_ABSTRACTION_FONT_CLIENT_H
/*
#define DALI_PLATFORM_TEXT_ABSTRACTION_FONT_CLIENT_H
/*
- * Copyright (c) 201
7
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-25,6
+25,7
@@
#include <dali/public-api/object/base-handle.h>
#include <dali/devel-api/text-abstraction/font-list.h>
#include <dali/devel-api/text-abstraction/text-abstraction-definitions.h>
#include <dali/public-api/object/base-handle.h>
#include <dali/devel-api/text-abstraction/font-list.h>
#include <dali/devel-api/text-abstraction/text-abstraction-definitions.h>
+#include <dali/public-api/dali-adaptor-common.h>
namespace Dali
{
namespace Dali
{
@@
-59,7
+60,7
@@
class FontClient;
* @endcode
* Glyph metrics and bitmap resources can then be retrieved using the FontId.
*/
* @endcode
* Glyph metrics and bitmap resources can then be retrieved using the FontId.
*/
-class DALI_
IMPORT
_API FontClient : public BaseHandle
+class DALI_
ADAPTOR
_API FontClient : public BaseHandle
{
public:
static const PointSize26Dot6 DEFAULT_POINT_SIZE; ///< The default point size.
{
public:
static const PointSize26Dot6 DEFAULT_POINT_SIZE; ///< The default point size.
@@
-67,7
+68,7
@@
public:
/**
* @brief Struct used to retrieve the glyph's bitmap.
*/
/**
* @brief Struct used to retrieve the glyph's bitmap.
*/
- struct GlyphBufferData
+ struct
DALI_ADAPTOR_API
GlyphBufferData
{
/**
* @brief Constructor.
{
/**
* @brief Constructor.
@@
-405,6
+406,15
@@
public:
*/
bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
*/
bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex );
+ /**
+ * @brief Add custom fonts directory
+ *
+ * @param[in] path to the fonts directory
+ *
+ * @return true if the fonts can be added.
+ */
+ bool AddCustomFontDirectory( const FontPath& path );
+
public: // Not intended for application developers
/**
* @brief This constructor is used by FontClient::Get().
public: // Not intended for application developers
/**
* @brief This constructor is used by FontClient::Get().