Default font to Sans from osifont
This commit is contained in:
@@ -85,12 +85,6 @@ void TechDrawGuiExport initTechDrawGui()
|
||||
|
||||
TechDrawGui::Workbench::init();
|
||||
|
||||
//TODO: is this platform independent?? should osifont be added by installer?
|
||||
//Load the osifont for Drawing View
|
||||
// See https://code.google.com/p/osifont/
|
||||
QFontDatabase fontDB;
|
||||
fontDB.addApplicationFont(QString::fromAscii(":/fonts/osifont.ttf"));
|
||||
|
||||
TechDrawGui::ViewProviderPage::init();
|
||||
TechDrawGui::ViewProviderDrawingView::init();
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ void QGCustomText::paint ( QPainter * painter, const QStyleOptionGraphicsItem *
|
||||
//svg text is much larger than screen text. scene units(mm) vs points.
|
||||
//need to scale text if going to svg.
|
||||
//TODO: magic translation happens? approx: right ~8mm down: 12mm + (3mm per mm of text height)
|
||||
//SVG transform matrix translation values are different for same font size + different fonts (osifont vs Ubuntu vs Arial)???
|
||||
//SVG transform matrix translation values are different for same font size + different fonts (Sans vs Ubuntu vs Arial)???
|
||||
// scale values are same for same font size + different fonts.
|
||||
//double svgScale = 2.835; //72dpi/(25.4mm/in)
|
||||
//double svgScale = 3.84; //96dpi/(25mm/in)
|
||||
|
||||
@@ -88,7 +88,7 @@ QGIView::QGIView()
|
||||
m_pen.setColor(m_colCurrent);
|
||||
|
||||
hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw");
|
||||
std::string fontName = hGrp->GetASCII("LabelFont", "osifont");
|
||||
std::string fontName = hGrp->GetASCII("LabelFont", "Sans");
|
||||
m_font.setFamily(QString::fromStdString(fontName));
|
||||
m_font.setPointSize(5.0); //scene units (mm), not points
|
||||
|
||||
|
||||
Reference in New Issue
Block a user