mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
qthaikuplugins: support OpenType fonts
This commit is contained in:
22
dev-qt/qthaikuplugins/patches/OpenType_support.patch
Normal file
22
dev-qt/qthaikuplugins/patches/OpenType_support.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 12b60ca7f246e0d55d6c2bcac983c74737366e5a Mon Sep 17 00:00:00 2001
|
||||
From: hanya <hanya.runo@gmail.com>
|
||||
Date: Fri, 2 Mar 2018 09:37:04 +0900
|
||||
Subject: [PATCH] Support OpenType fonts
|
||||
|
||||
---
|
||||
platforms/qhaikuplatform/haiku/qhaikuplatformfontdatabase.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/platforms/qhaikuplatform/haiku/qhaikuplatformfontdatabase.cpp b/platforms/qhaikuplatform/haiku/qhaikuplatformfontdatabase.cpp
|
||||
index c95abb7..d72a2d3 100644
|
||||
--- a/platforms/qhaikuplatform/haiku/qhaikuplatformfontdatabase.cpp
|
||||
+++ b/platforms/qhaikuplatform/haiku/qhaikuplatformfontdatabase.cpp
|
||||
@@ -70,7 +70,7 @@ void QHaikuPlatformFontDatabase::populateFontDatabase()
|
||||
for (int32 i = 0; i < fontPaths.CountStrings(); i++) {
|
||||
QDir dir(QLatin1String(fontPaths.StringAt(i).String()));
|
||||
QDirIterator qdi(dir.absolutePath(),
|
||||
- QStringList() << "*.ttf",
|
||||
+ QStringList() << "*.ttf" << "*.otf",
|
||||
QDir::Files, QDirIterator::Subdirectories);
|
||||
while (qdi.hasNext()) {
|
||||
const QByteArray file = QFile::encodeName(qdi.next());
|
||||
@@ -9,12 +9,13 @@ HOMEPAGE="https://github.com/threedeyes/qthaikuplugins/"
|
||||
COPYRIGHT="2017 Gerasim Troeglazov"
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU LGPL v3"
|
||||
REVISION="12"
|
||||
REVISION="13"
|
||||
|
||||
gitPluginsCommit="add1b3ee8ebb3e11292d1795ac13e3340fe28aa3"
|
||||
SOURCE_URI="$HOMEPAGE/archive/$gitPluginsCommit.tar.gz"
|
||||
CHECKSUM_SHA256="53bfabb5a94b62fbb43faf15411fe40cca5cff4bce0fed89424104cdf425ec83"
|
||||
SOURCE_DIR="qthaikuplugins-$gitPluginsCommit"
|
||||
PATCHES="OpenType_support.patch"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
Reference in New Issue
Block a user