# The default value is: Helvetica.
# This tag requires that the tag HAVE_DOT is set to YES.
-DOT_FONTNAME = Helvetica
+DOT_FONTNAME = FreeSans
# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
# dot graphs.
depends=('libsm' 'libxcursor' 'libxinerama' 'libxpm' 'libxrandr' 'fontconfig'
'icu' 'jansson' 'libcups' 'xdg-utils')
makedepends=('cmake' 'git' 'unifdef')
+optdepends=('gnu-free-fonts: last resort font')
source=("git+https://github.com/fluxer/katie")
sha1sums=('SKIP')
conflicts=('katie')
Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x hurd-i386
Section: x11
Depends: ${shlibs:Depends}, ${misc:Depends}, xdg-utils
-Recommends: xserver-xorg-core
+Recommends: xserver-xorg-core fonts-freefont-ttf
Description: C++ toolkit derived from the Qt 4.8 framework
Katie is continuation of the Qt4 C++ toolkit with the goal to keep it alive,
clean it up, fix some bugs and backport some features from Qt5. It is based
URL: https://github.com/fluxer/katie
BuildRequires: gcc-c++ cmake libicu-devel libzstd-devel jansson-devel zlib-devel libpng-devel freetype-devel pcre-devel openssl-devel libX11-devel libXinerama-devel libXrandr-devel libXrender-devel libXfixes-devel libXcursor-devel libSM-devel libICE-devel dbus-devel fontconfig-devel cups-devel unifdef
-Requires: xdg-utils
+Requires: xdg-utils gnu-free-fonts
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires(post): desktop-file-utils
-# https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/
+# https://docs.freebsd.org/en/books/porters-handbook/
PORTNAME = katie
DISTVERSION = 4.12.0.d20201231
USES = compiler:c++11-lang pkgconfig cmake ssl xorg desktop-file-utils
USE_XORG = x11 xinerama xrandr xrender xfixes xcursor xext xpm sm ice
USE_LDCONFIG = yes
-RUN_DEPENDS = xdg-open:devel/xdg-utils
+RUN_DEPENDS = xdg-open:devel/xdg-utils \
+ ${LOCALBASE}/share/fonts/freefont-ttf/FreeSans.ttf:x11-fonts/freefont-ttf
LIB_DEPENDS = libzstd.so:archivers/zstd libicuuc.so:devel/icu \
libicui18n.so:devel/icu libjansson.so:devel/jansson \
libpcre.so:devel/pcre libpng.so:graphics/png \
DL_AUTO_VARS = yes
DEPENDS = xdg-utils-[0-9]*:../../misc/xdg-utils
+DEPENDS += freefont-ttf-[0-9]*:../../fonts/freefont-ttf
BUILD_DEPENDS = unifdef-[0-9]*:../../devel/unifdef
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
BUILD_DEPENDS = devel/gettext,-tools
-RUN_DEPENDS = devel/desktop-file-utils devel/xdg-utils
+RUN_DEPENDS = devel/desktop-file-utils devel/xdg-utils fonts/freefont-ttf
LIB_DEPENDS = archivers/zstd textproc/icu4c devel/jansson devel/pcre \
graphics/png x11/dbus print/cups,-libs devel/gettext,-runtime
WANTLIB = ${COMPILER_LIBCXX} ICE SM X11 Xcursor Xext Xfixes Xinerama Xrandr \
\qml
Text {
text: "Hello World!"
- font.family: "Helvetica"
+ font.family: "FreeSans"
font.pointSize: 24
color: "red"
}
Sets the family name of the font.
- The family name is case insensitive and may optionally include a foundry name, e.g. "Helvetica [Cronyx]".
+ The family name is case insensitive and may optionally include a foundry name, e.g. "FreeSans [GNU]".
If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen.
If the family isn't available a family will be set using the font matching algorithm.
*/
TextEdit {
width: 240
text: "<b>Hello</b> <i>World!</i>"
- font.family: "Helvetica"
+ font.family: "FreeSans"
font.pointSize: 20
color: "blue"
focus: true
Sets the family name of the font.
- The family name is case insensitive and may optionally include a foundry name, e.g. "Helvetica [Cronyx]".
+ The family name is case insensitive and may optionally include a foundry name, e.g. "FreeSans [GNU]".
If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen.
If the family isn't available a family will be set using the font matching algorithm.
*/
Sets the family name of the font.
- The family name is case insensitive and may optionally include a foundry name, e.g. "Helvetica [Cronyx]".
+ The family name is case insensitive and may optionally include a foundry name, e.g. "FreeSans [GNU]".
If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen.
If the family isn't available a family will be set using the font matching algorithm.
*/
// Build "grouped" properties. In this example:
// Text {
// font.pointSize: 12
-// font.family: "Helvetica"
+// font.family: "FreeSans"
// }
// font is a nested property. pointSize and family are not.
bool QDeclarativeCompiler::buildGroupedProperty(QDeclarativeParser::Property *prop,
QApplicationPrivate::x11_apply_settings();
- // be smart about the size of the default font. most X servers have helvetica
+ // be smart about the size of the default font. most X servers have font
// 12 point available at 2 resolutions:
// 75dpi (12 pixels) and 100dpi (17 pixels).
// At 95 DPI, a 12 point font should be 16 pixels tall - in which case a 17
To compare the family members, we need to parse the font names
and compare the family/foundry strings separately. This allows
- us to compare e.g. "Helvetica" and "Helvetica [Adobe]" with
+ us to compare e.g. "FreeSans" and "FreeSans [GNU]" with
positive results.
*/
if (pixelSize != -1 && other.pixelSize != -1) {
\snippet doc/src/snippets/code/src_gui_text_qfont.cpp 2
You can specify the foundry you want in the family name. The font f
- in the above example will be set to "Helvetica
- [Cronyx]".
+ in the above example will be set to "FreeSans [GNU]".
To determine the attributes of the font actually used in the window
system, use a QFontInfo object, e.g.
12 points, except on Symbian where it is 7 points.
The \a family name may optionally also include a foundry name,
- e.g. "Helvetica [Cronyx]". If the \a family is
- available from more than one foundry and the foundry isn't
- specified, an arbitrary foundry is chosen. If the family isn't
- available a family will be set using the \l{QFont}{font matching}
- algorithm.
+ e.g. "FreeSans [GNU]". If the \a family is available from more
+ than one foundry and the foundry isn't specified, an arbitrary
+ foundry is chosen. If the family isn't available a family will
+ be set using the \l{QFont}{font matching} algorithm.
\sa Weight, setFamily(), setPointSize(), setWeight(), setItalic(),
QApplication::font()
may include a foundry name.
The \a family name may optionally also include a foundry name,
- e.g. "Helvetica [Cronyx]". If the \a family is
- available from more than one foundry and the foundry isn't
- specified, an arbitrary foundry is chosen. If the family isn't
- available a family will be set using the \l{QFont}{font matching}
- algorithm.
+ e.g. "FreeSans [GNU]". If the \a family is available from more
+ than one foundry and the foundry isn't specified, an arbitrary
+ foundry is chosen. If the family isn't available a family will be
+ set using the \l{QFont}{font matching} algorithm.
\sa family(), QFontInfo
*/
QString QFont::lastResortFamily()
{
- return QString::fromLatin1("Helvetica");
+ return QString::fromLatin1("FreeSans");
}
QT_END_NAMESPACE
If the font family is available from two or more foundries the
foundry name is included in the family name; for example:
"Helvetica [Adobe]" and "Helvetica [Cronyx]". When you specify a
- family, you can either use the old hyphenated "foundry-family"
- format or the bracketed "family [foundry]" format; for example:
- "Cronyx-Helvetica" or "Helvetica [Cronyx]". If the family has a
- foundry it is always returned using the bracketed format, as is
- the case with the value returned by families().
+ family, you can either use "family [foundry]" format; for example:
+ "Helvetica [Cronyx]". If the family has a foundry it is always
+ returned using the bracketed format, as is the case with the
+ value returned by families().
The font() function returns a QFont given a family, style and
point size.
return charstring;
}
-static const char *helvetica_styles[4] = {
- "Helvetica",
- "Helvetica-Bold",
- "Helvetica-Oblique",
- "Helvetica-BoldOblique"
+static const char *freefont_styles[4] = {
+ "FreeSans",
+ "FreeSans-Bold",
+ "FreeSans-Oblique",
+ "FreeSans-BoldOblique"
};
QByteArray QFontSubset::toType1() const
style += 2;
if (fontEngine->fontDef.weight >= QFont::Bold)
style++;
- if (fontEngine->fontDef.family.contains(QLatin1String("Helvetica"))) {
- psname = helvetica_styles[style];
+ if (fontEngine->fontDef.family.contains(QLatin1String("FreeSans"))) {
+ psname = freefont_styles[style];
standard_font = true;
}
}
\ingroup basicwidgets
The combobox is populated with an alphabetized list of font
- family names, such as Arial, Helvetica, and Times New Roman.
+ family names, such as FreeMono, FreeSans and FreeSerif.
Family names are displayed using the actual font when possible.
For fonts such as Symbol, where the name is not representable in
the font itself, a sample of the font is displayed next to the
QTest::addColumn<QFont>("font");
QTest::addColumn<QString>("text");
- QTest::newRow("helvetica hello") << QFont("helvetica",10) << QString("hello") ;
- QTest::newRow("helvetica hello &Bye") << QFont("helvetica",10) << QString("hello&Bye") ;
+ QTest::newRow("freesans hello") << QFont("freesans",10) << QString("hello") ;
+ QTest::newRow("freesans hello &Bye") << QFont("freesans",10) << QString("hello&Bye") ;
}