__pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__pTextObject->Compose();
}
- else
- {
- fontSize = __pButton->GetTextSizeF();
- SetTextSize(fontSize);
+ //else
+ //{
+ // fontSize = __pButton->GetTextSizeF();
+ // SetTextSize(fontSize);
- __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
- __pTextObject->Compose();
- }
+ // __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
+ // __pTextObject->Compose();
+ //}
__pTextObject->SetForegroundColor(__pButton->GetTextColor(__pButton->GetButtonStatus()), 0, __pTextObject->GetTextLength());
__pTextObject->Draw(*_CanvasImpl::GetInstance(*pCanvas));