// /// The TFont copy constructor. // TFont::TFont(const TFont& src) { #if !defined(NO_GDI_SHARE_HANDLES) Handle = src.Handle; RefAdd(Handle, Font); #else LOGFONT logFont; src.GetObject(logFont); Handle = ::CreateFontIndirect(&logFont); WARNX(OwlGDI, !Handle, 0, _T("Cannot create TFont from TFont @") << hex << uint32(LPVOID(&src))); CheckValid(); RefAdd(Handle, Font); #endif }