As retriving the font name I need to retrieve glyf information from the ttf file
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
As retriving the font name I need to retrieve glyf information from the ttf file. look at the code below this is not full code just a piece of code void TTFReader::ReadGlyf() { setPosition(m_glyfOffset);//get glyf offset from the ttf file for(int c=0 ;c < m_glyphs.size();c++) { int gl = m_glyphs[c]; //unsigned short k = readWORD(); unsigned short numberOfContours = readWORD(); unsigned short minx1 = readWORD(); unsigned short miny1 = readWORD(); unsigned short maxx1 = readWORD(); unsigned short maxy1 = readWORD(); setPosition(m_glyfOffset+m_ttf_pos); gl = m_glyphs[c]; } } my code is not working correctly mean not giving the exact value for eg the number of contours for one glyph.