mgfontdatabase.cpp
来自「monqueror一个很具有参考价值的源玛」· C++ 代码 · 共 33 行
CPP
33 行
#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 + =
减小字号Ctrl + -
显示快捷键?