EgtExecutor 1.9c3 :

- aggiunta a Exe funzione ExeTextGetFont
- aggiunte a Lua funzioni EgtTextGetContent e EgtTextGetFont.
This commit is contained in:
Dario Sassi
2018-03-10 10:38:26 +00:00
parent 2bd359121f
commit d638f57a3d
3 changed files with 51 additions and 0 deletions
+15
View File
@@ -1302,6 +1302,21 @@ ExeTextGetContent( int nId, string& sText)
return true ;
}
//----------------------------------------------------------------------------
bool
ExeTextGetFont( int nId, string& sFont)
{
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// recupero il testo
const IExtText* pTxt = GetExtText( pGeomDB->GetGeoObj( nId)) ;
if ( pTxt == nullptr)
return false ;
// recupero il font
sFont = pTxt->GetFont() ;
return true ;
}
//-------------------------------------------------------------------------------
// Geo Transforms
//-------------------------------------------------------------------------------