Use extraFontFlag to specify if anti-aliased fonts should be used.
Use GetPartialTextExtents. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -160,6 +160,7 @@ void ScintillaWX::Initialise() {
|
||||
dropTarget->SetScintilla(this);
|
||||
stc->SetDropTarget(dropTarget);
|
||||
#endif
|
||||
vs.extraFontFlag = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -907,5 +908,15 @@ void ScintillaWX::ClipChildren(wxDC& WXUNUSED(dc), PRectangle WXUNUSED(rect)) {
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void ScintillaWX::SetUseAntiAliasing(bool useAA) {
|
||||
vs.extraFontFlag = useAA;
|
||||
InvalidateStyleRedraw();
|
||||
}
|
||||
|
||||
bool ScintillaWX::GetUseAntiAliasing() {
|
||||
return vs.extraFontFlag;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user