correct font
This commit is contained in:
levinsv 2019-02-10 12:15:27 +05:00
parent 0b39fb9f92
commit 96a96b448c
3 changed files with 11 additions and 3 deletions

View file

@ -1215,8 +1215,10 @@ void ctlSQLBox::Copy() {
wxString tColor;
wxFont fntSQLBox = settings->GetSQLFont();
wxString fontName = fntSQLBox.GetFaceName();
wxString sz;
sz.Printf("%d",fntSQLBox.GetPixelSize().GetHeight() );
str=wxT("<font face=\"")+fontName+wxT("\">");
str=wxT("<div style=\"font-family: ")+fontName+wxT("; font-size: "+sz+"px\"><font>");
int k=0;
int l=1;
while (startp<endp) {
@ -1234,7 +1236,7 @@ void ctlSQLBox::Copy() {
startp=startp+l;
k++;
}
str=str+wxT("</font>");
str=str+wxT("</font></div>");