--------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------------------------------------------------
| 149 | //--------------------------------------------------------------------------- |
| 150 | //--------------------------------------------------------------------------- |
| 151 | void TMyFont::Get(TFont * font) |
| 152 | { |
| 153 | Color = font->Color; |
| 154 | Height = font->Height; |
| 155 | strncpy(Name, ((AnsiString)font->Name).c_str(), 31); |
| 156 | Name[31] = NULL; |
| 157 | Pitch = font->Pitch; |
| 158 | PixelsPerInch = font->PixelsPerInch; |
| 159 | Size = font->Size; |
| 160 | |
| 161 | Style = 0; |
| 162 | if( font->Style.Contains(fsBold) ) Style |= 1; |
| 163 | if( font->Style.Contains(fsItalic) ) Style |= 2; |
| 164 | if( font->Style.Contains(fsUnderline) ) Style |= 4; |
| 165 | if( font->Style.Contains(fsStrikeOut) ) Style |= 8; |
| 166 | } |
| 167 | //--------------------------------------------------------------- |
| 168 | void TMyFont::Set(TFont * font) |
| 169 | { |
no test coverage detected