EgtExecutor 1.9c3 :
- aggiunta a Exe funzione ExeTextGetFont - aggiunte a Lua funzioni EgtTextGetContent e EgtTextGetFont.
This commit is contained in:
@@ -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
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user