📄 mgfontdatabase.cpp
字号:
#include "qstringlist.h"#include "render_interface.h"#include "mgfont.h"#include "mgfontdatabase.h"// NOTE: Only defined families and charSets.// NOTE: this implementation ignore the argument of onlyForLocale.QStringList MGFontDatabase::families (bool onlyForLocale) const{ QStringList list; list.append ("Song"); list.append ("Ming"); list.append ("Courier"); list.append ("Times"); list.append ("Helvetica"); list.append ("Symbol"); return list;}QStringList MGFontDatabase::charSets (const QString &familyName, bool onlyForLocale) const{ QStringList list; list.append ("gb2312.1980-0"); list.append ("big5-0"); list.append ("iso8859-1"); return list;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -