Prado\Web\UI\WebControls\TFont::copyFrom PHP Method

copyFrom() public method

If a font field is set in the new font, the corresponding field in this font will be overwritten.
public copyFrom ( $font )
    public function copyFrom($font)
    {
        if ($font === null || $font->_flags === 0) {
            return;
        }
        if ($font->_flags & self::IS_SET_BOLD) {
            $this->setBold($font->getBold());
        }
        if ($font->_flags & self::IS_SET_ITALIC) {
            $this->setItalic($font->getItalic());
        }
        if ($font->_flags & self::IS_SET_OVERLINE) {
            $this->setOverline($font->getOverline());
        }
        if ($font->_flags & self::IS_SET_STRIKEOUT) {
            $this->setStrikeout($font->getStrikeout());
        }
        if ($font->_flags & self::IS_SET_UNDERLINE) {
            $this->setUnderline($font->getUnderline());
        }
        if ($font->_flags & self::IS_SET_SIZE) {
            $this->setSize($font->getSize());
        }
        if ($font->_flags & self::IS_SET_NAME) {
            $this->setName($font->getName());
        }
    }