Hello Klaas, in stylebase.cpp:
GetFaceName() doesnt return a facename when on begin "a2dDEFAULT_CANVASFONT = new a2dFont( 100.0, wxSWISS );" called. With an empty wxString GetFontFile() returns an assert in Debug. wxString a2dFontDcData::FindFileName() const { wxString filename; #if defined(__USE_WINAPI__) wxString facename = m_font.GetFaceName(); if ( m_font.GetWeight() == wxBOLD ) facename += wxT( " Bold" ); if ( m_font.GetStyle() == wxITALIC ) facename += wxT( " Italic" ); TCHAR displayname[_MAX_PATH]; TCHAR fontfilename[_MAX_PATH]; if( GetFontFile( facename.c_str(), displayname, _MAX_PATH - 1, fontfilename, _MAX_PATH - 1 ) ) { filename = fontfilename; } #endif // defined( __USE_WINAPI__ ) return filename; } ### in cantext.cpp in bool a2dText::DoUpdate(...) .. .. // If previous character exists ... if (m_caret - linestart > 0 && (size_t) (m_caret - linestart) <= text.Length()) // ... Put caret halfway the kerning value wcaret += m_font.GetKerning( text[(size_t) (m_caret - linestart - 1)], text[(size_t) (m_caret - linestart)] ) / 2; .. .. GetKerning() is called also when previous character doesnt exist. ### in gen.h BUFSIZE is only used in genxmlpars.cpp a2dIOHandlerXMLPull::FillQueue (). You can move the definition of BUFSIZE in this function or maybe rename BUFSIZE, because the name BUFSIZE is very common. Best regards Süleyman ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev