\hypertarget{group__Evas__Object__Text}{}\section{Text Object Functions}
\label{group__Evas__Object__Text}\index{Text Object Functions@{Text Object Functions}}


Functions that operate on single line, single style text objects.  


\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+M\+A\+S\+K\+\_\+\+B\+A\+S\+IC}~0xf\hypertarget{group__Evas__Object__Text_ga5511e80a76d8079e069a133d79938eda}{}\label{group__Evas__Object__Text_ga5511e80a76d8079e069a133d79938eda}

\item 
\#define \hyperlink{group__Evas__Object__Text_ga15e082dff2a1ec389c0cbbe7512f9a10}{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET}(x,  s)~do \{ x = ((x) \& $\sim$E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+M\+A\+S\+K\+\_\+\+B\+A\+S\+IC) $\vert$ (s); \} while (0)
\begin{DoxyCompactList}\small\item\em Text style type creation macro. \end{DoxyCompactList}\item 
\#define {\bfseries E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+M\+A\+S\+K\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+ON}~(0x7 $<$$<$ 4)\hypertarget{group__Evas__Object__Text_gaed21e4625d3ba9ae888db73fa110b340}{}\label{group__Evas__Object__Text_gaed21e4625d3ba9ae888db73fa110b340}

\item 
\#define \hyperlink{group__Evas__Object__Text_ga60d68719291d9889a679bece55abb39b}{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET}(x,  s)~do \{ x = ((x) \& $\sim$E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+M\+A\+S\+K\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+ON) $\vert$ (s); \} while (0)
\begin{DoxyCompactList}\small\item\em Text style type creation macro. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object} $\ast$ \hyperlink{group__Evas__Object__Text_ga72224822cf1772ef16b1554f0a6205d5}{evas\+\_\+object\+\_\+text\+\_\+add} (\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e)
\begin{DoxyCompactList}\small\item\em Creates a new text object on the provided canvas. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Text_gabe57fc428ee4db9e9d7feb9e3a108fb3}{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$text)
\begin{DoxyCompactList}\small\item\em Sets the text string to be displayed by the given text object. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Evas__Object__Text_ga823228295127ee2a2d9678d5ac24d9db}{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Retrieves the text string currently being displayed by the given text object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Text_ga7b30d6f96fcce1d982b2610408e9469c}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$font\+\_\+source)
\begin{DoxyCompactList}\small\item\em Set the font (source) file to be used on a given text object. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Evas__Object__Text_gae591234619773bb9cb74614490827aab}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the font file\textquotesingle{}s path which is being used on a given text object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Text_ga1813cea2c010c923d31787caec5dc857}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set} (\hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$font, Evas\+\_\+\+Font\+\_\+\+Size size)
\begin{DoxyCompactList}\small\item\em Set the font family or filename, and size on a given text object. \end{DoxyCompactList}\item 
void \hyperlink{group__Evas__Object__Text_ga2a13b7617af385b847d133da15357c13}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get} (const \hyperlink{group__Eo_ga9f3010a50b61a892d41f4ec2bda73f4c}{Eo} $\ast$obj, const char $\ast$$\ast$font, Evas\+\_\+\+Font\+\_\+\+Size $\ast$size)
\begin{DoxyCompactList}\small\item\em Retrieve the font family and size in use on a given text object. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions that operate on single line, single style text objects. 

For multiline and multiple style text, see \hyperlink{group__Evas__Object__Textblock}{Textblock Object Functions}.

See some \hyperlink{Example_Evas_Text}{examples} on this group of functions.

\begin{DoxyWarning}{Warning}
We don\textquotesingle{}t guarantee any proper results if you create a Text object without setting the evas engine. 
\end{DoxyWarning}


\subsection{Macro Definition Documentation}
\index{Text Object Functions@{Text Object Functions}!E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET@{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET}}
\index{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET@{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET}{EVAS_TEXT_STYLE_BASIC_SET}}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+B\+A\+S\+I\+C\+\_\+\+S\+ET(
\begin{DoxyParamCaption}
\item[{}]{x, }
\item[{}]{s}
\end{DoxyParamCaption}
)~do \{ x = ((x) \& $\sim$E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+M\+A\+S\+K\+\_\+\+B\+A\+S\+IC) $\vert$ (s); \} while (0)}\hypertarget{group__Evas__Object__Text_ga15e082dff2a1ec389c0cbbe7512f9a10}{}\label{group__Evas__Object__Text_ga15e082dff2a1ec389c0cbbe7512f9a10}


Text style type creation macro. 

Use style types on the \textquotesingle{}s\textquotesingle{} arguments, being \textquotesingle{}x\textquotesingle{} your style variable. \index{Text Object Functions@{Text Object Functions}!E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET@{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET}}
\index{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET@{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET}{EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET}}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+\+S\+ET(
\begin{DoxyParamCaption}
\item[{}]{x, }
\item[{}]{s}
\end{DoxyParamCaption}
)~do \{ x = ((x) \& $\sim$E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+M\+A\+S\+K\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+ON) $\vert$ (s); \} while (0)}\hypertarget{group__Evas__Object__Text_ga60d68719291d9889a679bece55abb39b}{}\label{group__Evas__Object__Text_ga60d68719291d9889a679bece55abb39b}


Text style type creation macro. 

This one will impose shadow directions on the style type variable -- use the {\ttfamily E\+V\+A\+S\+\_\+\+T\+E\+X\+T\+\_\+\+S\+T\+Y\+L\+E\+\_\+\+S\+H\+A\+D\+O\+W\+\_\+\+D\+I\+R\+E\+C\+T\+I\+O\+N\+\_\+$\ast$} values on \textquotesingle{}s\textquotesingle{}, incrementally. 

\subsection{Function Documentation}
\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+add@{evas\+\_\+object\+\_\+text\+\_\+add}}
\index{evas\+\_\+object\+\_\+text\+\_\+add@{evas\+\_\+object\+\_\+text\+\_\+add}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+add(\+Evas $\ast$e)}{evas_object_text_add(Evas *e)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Evas\+\_\+\+Object}$\ast$ evas\+\_\+object\+\_\+text\+\_\+add (
\begin{DoxyParamCaption}
\item[{{\bf Evas} $\ast$}]{e}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_ga72224822cf1772ef16b1554f0a6205d5}{}\label{group__Evas__Object__Text_ga72224822cf1772ef16b1554f0a6205d5}


Creates a new text object on the provided canvas. 


\begin{DoxyParams}{Parameters}
{\em e} & The canvas to create the text object on. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily N\+U\+LL} on error, a pointer to a new text object on success.
\end{DoxyReturn}
Text objects are for simple, single line text elements. If you want more elaborated text blocks, see \hyperlink{group__Evas__Object__Textblock}{Textblock Object Functions}.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_ga7b30d6f96fcce1d982b2610408e9469c}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set()} 

\hyperlink{group__Evas__Object__Text_ga1813cea2c010c923d31787caec5dc857}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set()} 

\hyperlink{group__Evas__Object__Text_gabe57fc428ee4db9e9d7feb9e3a108fb3}{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set()} 
\end{DoxySeeAlso}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, eina\+\_\+inlist\+\_\+append(), E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+G\+ET, eina\+\_\+inlist\+\_\+prepend(), eina\+\_\+inlist\+\_\+prepend\+\_\+relative(), eina\+\_\+inlist\+\_\+remove(), E\+I\+N\+A\+\_\+\+T\+R\+UE, E\+I\+N\+A\+\_\+\+U\+N\+I\+C\+O\+D\+E\+\_\+\+E\+M\+P\+T\+Y\+\_\+\+S\+T\+R\+I\+NG, eina\+\_\+unicode\+\_\+strdup(), eina\+\_\+unicode\+\_\+utf8\+\_\+to\+\_\+unicode(), E\+I\+N\+A\+\_\+\+U\+N\+U\+S\+ED, E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+I\+NT, E\+I\+N\+A\+\_\+\+V\+A\+L\+U\+E\+\_\+\+T\+Y\+P\+E\+\_\+\+S\+T\+R\+I\+NG, eo\+\_\+add, eo\+\_\+data\+\_\+scope\+\_\+get(), E\+O\+\_\+\+D\+B\+G\+\_\+\+I\+N\+F\+O\+\_\+\+A\+P\+P\+E\+ND, E\+O\+\_\+\+D\+B\+G\+\_\+\+I\+N\+F\+O\+\_\+\+L\+I\+S\+T\+\_\+\+A\+P\+P\+E\+N\+D(), and evas\+\_\+event\+\_\+feed\+\_\+mouse\+\_\+move().



Referenced by edje\+\_\+edit\+\_\+part\+\_\+name\+\_\+set(), and edje\+\_\+file\+\_\+data\+\_\+get().

\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set@{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set}}
\index{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set@{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set(\+Eo $\ast$obj, const char $\ast$text)}{evas_object_text_text_set(Eo *obj, const char *text)}}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Eo} $\ast$}]{obj, }
\item[{const char $\ast$}]{text}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_gabe57fc428ee4db9e9d7feb9e3a108fb3}{}\label{group__Evas__Object__Text_gabe57fc428ee4db9e9d7feb9e3a108fb3}


Sets the text string to be displayed by the given text object. 

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_ga823228295127ee2a2d9678d5ac24d9db}{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get()}
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em text} & Text string to display on it. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ecore_evas_window_sizes_example_8c-example}{ecore\+\_\+evas\+\_\+window\+\_\+sizes\+\_\+example.\+c}, \hyperlink{eina_tiler_01_8c-example}{eina\+\_\+tiler\+\_\+01.\+c}, \hyperlink{evas-text_8c-example}{evas-\/text.\+c}, and \hyperlink{test_bouncing_text_8c-example}{test\+\_\+bouncing\+\_\+text.\+c}.\end{Desc}
\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get@{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get}}
\index{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get@{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get(const Eo $\ast$obj)}{evas_object_text_text_get(const Eo *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ evas\+\_\+object\+\_\+text\+\_\+text\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Eo} $\ast$}]{obj}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_ga823228295127ee2a2d9678d5ac24d9db}{}\label{group__Evas__Object__Text_ga823228295127ee2a2d9678d5ac24d9db}


Retrieves the text string currently being displayed by the given text object. 

\begin{DoxyReturn}{Returns}
The text string currently being displayed on it.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
Do not free() the return value.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_gabe57fc428ee4db9e9d7feb9e3a108fb3}{evas\+\_\+object\+\_\+text\+\_\+text\+\_\+set()} 
\end{DoxySeeAlso}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+SE, E\+I\+N\+A\+\_\+\+T\+R\+UE, and eo\+\_\+data\+\_\+scope\+\_\+get().

\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set}}
\index{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set(\+Eo $\ast$obj, const char $\ast$font\+\_\+source)}{evas_object_text_font_source_set(Eo *obj, const char *font_source)}}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Eo} $\ast$}]{obj, }
\item[{const char $\ast$}]{font\+\_\+source}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_ga7b30d6f96fcce1d982b2610408e9469c}{}\label{group__Evas__Object__Text_ga7b30d6f96fcce1d982b2610408e9469c}


Set the font (source) file to be used on a given text object. 

This function allows the font file to be explicitly set for a given text object, overriding system lookup, which will first occur in the given file\textquotesingle{}s contents.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_ga2a13b7617af385b847d133da15357c13}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get()}
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em font\+\_\+source} & The font file\textquotesingle{}s path. \\
\hline
\end{DoxyParams}


Referenced by edje\+\_\+edit\+\_\+part\+\_\+name\+\_\+set(), and edje\+\_\+file\+\_\+data\+\_\+get().

\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get}}
\index{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get(const Eo $\ast$obj)}{evas_object_text_font_source_get(const Eo *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Eo} $\ast$}]{obj}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_gae591234619773bb9cb74614490827aab}{}\label{group__Evas__Object__Text_gae591234619773bb9cb74614490827aab}


Get the font file\textquotesingle{}s path which is being used on a given text object. 

\begin{DoxyReturn}{Returns}
The font file\textquotesingle{}s path.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_ga2a13b7617af385b847d133da15357c13}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get()} for more details 
\end{DoxySeeAlso}
\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set}}
\index{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set(\+Eo $\ast$obj, const char $\ast$font, Evas\+\_\+\+Font\+\_\+\+Size size)}{evas_object_text_font_set(Eo *obj, const char *font, Evas_Font_Size size)}}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf Eo} $\ast$}]{obj, }
\item[{const char $\ast$}]{font, }
\item[{Evas\+\_\+\+Font\+\_\+\+Size}]{size}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_ga1813cea2c010c923d31787caec5dc857}{}\label{group__Evas__Object__Text_ga1813cea2c010c923d31787caec5dc857}


Set the font family or filename, and size on a given text object. 

This function allows the font name and size of a text object to be set. The {\ttfamily font} string has to follow fontconfig\textquotesingle{}s convention on naming fonts, as it\textquotesingle{}s the underlying library used to query system fonts by Evas (see the {\ttfamily fc-\/list} command\textquotesingle{}s output, on your system, to get an idea). Alternatively, one can use a full path to a font file.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_ga2a13b7617af385b847d133da15357c13}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get()} 

\hyperlink{group__Evas__Object__Text_ga7b30d6f96fcce1d982b2610408e9469c}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+source\+\_\+set()}
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em font} & The font family name or filename. \\
\hline
\mbox{\tt in}  & {\em size} & The font size, in points. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ecore_evas_window_sizes_example_8c-example}{ecore\+\_\+evas\+\_\+window\+\_\+sizes\+\_\+example.\+c}, \hyperlink{eina_tiler_01_8c-example}{eina\+\_\+tiler\+\_\+01.\+c}, \hyperlink{evas-text_8c-example}{evas-\/text.\+c}, and \hyperlink{test_bouncing_text_8c-example}{test\+\_\+bouncing\+\_\+text.\+c}.\end{Desc}


Referenced by evas\+\_\+string\+\_\+char\+\_\+len\+\_\+get().

\index{Text Object Functions@{Text Object Functions}!evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get}}
\index{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get@{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get}!Text Object Functions@{Text Object Functions}}
\subsubsection[{\texorpdfstring{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get(const Eo $\ast$obj, const char $\ast$$\ast$font, Evas\+\_\+\+Font\+\_\+\+Size $\ast$size)}{evas_object_text_font_get(const Eo *obj, const char **font, Evas_Font_Size *size)}}]{\setlength{\rightskip}{0pt plus 5cm}void evas\+\_\+object\+\_\+text\+\_\+font\+\_\+get (
\begin{DoxyParamCaption}
\item[{const {\bf Eo} $\ast$}]{obj, }
\item[{const char $\ast$$\ast$}]{font, }
\item[{Evas\+\_\+\+Font\+\_\+\+Size $\ast$}]{size}
\end{DoxyParamCaption}
)}\hypertarget{group__Evas__Object__Text_ga2a13b7617af385b847d133da15357c13}{}\label{group__Evas__Object__Text_ga2a13b7617af385b847d133da15357c13}


Retrieve the font family and size in use on a given text object. 

This function allows the font name and size of a text object to be queried. Be aware that the font name string is still owned by Evas and should {\bfseries not} have free() called on it by the caller of the function.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Evas__Object__Text_ga1813cea2c010c923d31787caec5dc857}{evas\+\_\+object\+\_\+text\+\_\+font\+\_\+set()}
\end{DoxySeeAlso}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em font} & The font family name or filename. \\
\hline
\mbox{\tt out}  & {\em size} & The font size, in points. \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples\+: ]\par
\hyperlink{evas-text_8c-example}{evas-\/text.\+c}.\end{Desc}
