MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / Set

Method Set

sourcecommon/utils.cpp:168–191  ·  view source on GitHub ↗

---------------------------------------------------------------

Source from the content-addressed store, hash-verified

166}
167//---------------------------------------------------------------
168void TMyFont::Set(TFont * font)
169{
170 if( font->Color != Color )
171 font->Color = Color;
172 if( font->Height != Height )
173 font->Height = Height;
174 if( font->Name != Name )
175 font->Name = Name;
176 if( font->Pitch != Pitch )
177 font->Pitch = Pitch;
178 if( PixelsPerInch==0 ) PixelsPerInch = 120; // ?
179 if( font->PixelsPerInch != PixelsPerInch )
180 font->PixelsPerInch = PixelsPerInch;
181 if( font->Size != Size )
182 font->Size = Size;
183
184 TFontStyles st;
185 if( Style & 1 ) st << fsBold;
186 if( Style & 2 ) st << fsItalic;
187 if( Style & 4 ) st << fsUnderline;
188 if( Style & 8 ) st << fsStrikeOut;
189 if( font->Style != st )
190 font->Style = st;
191}
192//---------------------------------------------------------------------------
193bool TMyFont::Load(TMYIniFile * f, char * Section)
194{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected