\hypertarget{class_letter_c_d_t_1_1_glyph_outline}{
\section{LetterCDT::GlyphOutline Class Reference}
\label{class_letter_c_d_t_1_1_glyph_outline}\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
}
Loads a glyph outline from a freetype face.  


{\tt \#include $<$GlyphOutline.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{class_letter_c_d_t_1_1_glyph_outline_c804887594a1a7a11e15615147b71bb3}{GlyphOutline} (wchar\_\-t charCode, FT\_\-Face face)
\item 
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_5517e3ac36a45f1a3d11c475773d3b40}{
\hyperlink{class_letter_c_d_t_1_1_glyph_outline_5517e3ac36a45f1a3d11c475773d3b40}{$\sim$GlyphOutline} (void)}
\label{class_letter_c_d_t_1_1_glyph_outline_5517e3ac36a45f1a3d11c475773d3b40}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
const std::vector$<$ \hyperlink{class_letter_c_d_t_1_1_point}{Point} $>$ \& \hyperlink{class_letter_c_d_t_1_1_glyph_outline_c936616e0bce7bf9343d525e632a4441}{GetPoints} (void) const 
\begin{CompactList}\small\item\em Get the points conforming the character. \item\end{CompactList}\item 
const std::vector$<$ Line $>$ \& \hyperlink{class_letter_c_d_t_1_1_glyph_outline_3e13e8a8a3eb49780fb35ec8d010b54d}{GetSegments} (void) const 
\begin{CompactList}\small\item\em Get the segments conforming the character. \item\end{CompactList}\item 
const std::vector$<$ int $>$ \& \hyperlink{class_letter_c_d_t_1_1_glyph_outline_e29ebc5ed5c865cbbcfed5e71c025d23}{GetContours} (void) const 
\begin{CompactList}\small\item\em Get the contours conforming the character. \item\end{CompactList}\item 
const std::vector$<$ ContourType $>$ \& \hyperlink{class_letter_c_d_t_1_1_glyph_outline_aa84f8f2b5f605791b72c46bca4ff9d4}{GetContoursType} (void) const 
\begin{CompactList}\small\item\em Get the type of contour: Inner or Outer. For example, 'a' has two contours the exterior of the letter (Outer) and the hole (Inner). \item\end{CompactList}\item 
int \hyperlink{class_letter_c_d_t_1_1_glyph_outline_22c9a0a590d1c89eb10f1a22e86ee98a}{GetWidth} (void) const 
\begin{CompactList}\small\item\em Get the width metric. \item\end{CompactList}\item 
int \hyperlink{class_letter_c_d_t_1_1_glyph_outline_b4410a0d5b4790c3b3cae3fcecab158a}{GetAdvance} (void) const 
\begin{CompactList}\small\item\em Get the advance metric. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Loads a glyph outline from a freetype face. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_c804887594a1a7a11e15615147b71bb3}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GlyphOutline@{GlyphOutline}}
\index{GlyphOutline@{GlyphOutline}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GlyphOutline}]{\setlength{\rightskip}{0pt plus 5cm}GlyphOutline::GlyphOutline (wchar\_\-t {\em charCode}, \/  FT\_\-Face {\em face})}}
\label{class_letter_c_d_t_1_1_glyph_outline_c804887594a1a7a11e15615147b71bb3}


Constructor \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em charCode}]the character code \item[{\em face}]freetype face from where it has to loaded the character outline \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_b4410a0d5b4790c3b3cae3fcecab158a}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GetAdvance@{GetAdvance}}
\index{GetAdvance@{GetAdvance}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GetAdvance}]{\setlength{\rightskip}{0pt plus 5cm}int GlyphOutline::GetAdvance (void) const}}
\label{class_letter_c_d_t_1_1_glyph_outline_b4410a0d5b4790c3b3cae3fcecab158a}


Get the advance metric. 

\begin{Desc}
\item[Returns:]advance of the glyph \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_e29ebc5ed5c865cbbcfed5e71c025d23}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GetContours@{GetContours}}
\index{GetContours@{GetContours}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GetContours}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ int $>$ \& GlyphOutline::GetContours (void) const}}
\label{class_letter_c_d_t_1_1_glyph_outline_e29ebc5ed5c865cbbcfed5e71c025d23}


Get the contours conforming the character. 

\begin{Desc}
\item[Note:]vector layout: \mbox{[}S0, E0, S1, E1, ..., Sn, En\mbox{]} being Si start segment index, Ei end segment index \end{Desc}
\begin{Desc}
\item[Returns:]vector with indices of contours \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_aa84f8f2b5f605791b72c46bca4ff9d4}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GetContoursType@{GetContoursType}}
\index{GetContoursType@{GetContoursType}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GetContoursType}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ ContourType $>$ \& GlyphOutline::GetContoursType (void) const}}
\label{class_letter_c_d_t_1_1_glyph_outline_aa84f8f2b5f605791b72c46bca4ff9d4}


Get the type of contour: Inner or Outer. For example, 'a' has two contours the exterior of the letter (Outer) and the hole (Inner). 

\begin{Desc}
\item[Returns:]vector with contours types \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_c936616e0bce7bf9343d525e632a4441}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GetPoints@{GetPoints}}
\index{GetPoints@{GetPoints}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GetPoints}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf Point} $>$ \& GlyphOutline::GetPoints (void) const}}
\label{class_letter_c_d_t_1_1_glyph_outline_c936616e0bce7bf9343d525e632a4441}


Get the points conforming the character. 

\begin{Desc}
\item[Returns:]vector of points \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_3e13e8a8a3eb49780fb35ec8d010b54d}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GetSegments@{GetSegments}}
\index{GetSegments@{GetSegments}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GetSegments}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ Line $>$ \& GlyphOutline::GetSegments (void) const}}
\label{class_letter_c_d_t_1_1_glyph_outline_3e13e8a8a3eb49780fb35ec8d010b54d}


Get the segments conforming the character. 

\begin{Desc}
\item[Returns:]vector of lines \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_glyph_outline_22c9a0a590d1c89eb10f1a22e86ee98a}{
\index{LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}!GetWidth@{GetWidth}}
\index{GetWidth@{GetWidth}!LetterCDT::GlyphOutline@{LetterCDT::GlyphOutline}}
\subsubsection[{GetWidth}]{\setlength{\rightskip}{0pt plus 5cm}int GlyphOutline::GetWidth (void) const}}
\label{class_letter_c_d_t_1_1_glyph_outline_22c9a0a590d1c89eb10f1a22e86ee98a}


Get the width metric. 

\begin{Desc}
\item[Returns:]width of the glyph \end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
src/letterCdt/\hyperlink{_glyph_outline_8h}{GlyphOutline.h}\item 
src/letterCdt/\hyperlink{_glyph_outline_8cpp}{GlyphOutline.cpp}\end{CompactItemize}
