EgtGeomKernel 1.5f5 :
- gestione salvataggio in modalità testo compresso - aggiunto controlli in scritture per salvataggio.
This commit is contained in:
+22
-11
@@ -220,27 +220,38 @@ bool
|
||||
ExtText::Save( NgeWriter& ngeOut) const
|
||||
{
|
||||
// punto di inserimento
|
||||
ngeOut.WritePoint( m_ptP, ";") ;
|
||||
if ( ! ngeOut.WritePoint( m_ptP, ";"))
|
||||
return false ;
|
||||
// flag posizione inserimento
|
||||
ngeOut.WriteInt( m_nInsPos, ";") ;
|
||||
if ( ! ngeOut.WriteInt( m_nInsPos, ";"))
|
||||
return false ;
|
||||
// versore normale
|
||||
ngeOut.WriteVector( m_vtN, ";") ;
|
||||
if ( ! ngeOut.WriteVector( m_vtN, ";"))
|
||||
return false ;
|
||||
// versore di direzione
|
||||
ngeOut.WriteVector( m_vtD, ";", true) ;
|
||||
if ( ! ngeOut.WriteVector( m_vtD, ";", true))
|
||||
return false ;
|
||||
// testo
|
||||
ngeOut.WriteString( m_sText, nullptr, true) ;
|
||||
if ( ! ngeOut.WriteString( m_sText, nullptr, true))
|
||||
return false ;
|
||||
// font
|
||||
ngeOut.WriteString( m_sFont, ";") ;
|
||||
if ( ! ngeOut.WriteString( m_sFont, ";"))
|
||||
return false ;
|
||||
// spessore del font
|
||||
ngeOut.WriteInt( m_nWeight, ",") ;
|
||||
if ( ! ngeOut.WriteInt( m_nWeight, ","))
|
||||
return false ;
|
||||
// flag di italico
|
||||
ngeOut.WriteBool( m_bItalic, ",") ;
|
||||
if ( ! ngeOut.WriteBool( m_bItalic, ","))
|
||||
return false ;
|
||||
// altezza del font
|
||||
ngeOut.WriteDouble( m_dHeight, ",") ;
|
||||
if ( ! ngeOut.WriteDouble( m_dHeight, ","))
|
||||
return false ;
|
||||
// rapporto larghezza su altezza del font
|
||||
ngeOut.WriteDouble( m_dRatio, ",") ;
|
||||
if ( ! ngeOut.WriteDouble( m_dRatio, ","))
|
||||
return false ;
|
||||
// avanzamento addizionale tra caratteri
|
||||
ngeOut.WriteDouble( m_dAddAdvance, ";", true) ;
|
||||
if ( ! ngeOut.WriteDouble( m_dAddAdvance, ";", true))
|
||||
return false ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user