---------------------------------------------------------------
| 166 | } |
| 167 | //--------------------------------------------------------------- |
| 168 | void 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 | //--------------------------------------------------------------------------- |
| 193 | bool TMyFont::Load(TMYIniFile * f, char * Section) |
| 194 | { |
nothing calls this directly
no outgoing calls
no test coverage detected