Bug 1136522

Summary: Use HarfBuzz
Product: [Fedora] Fedora Reporter: Michael Kuhn <suraia>
Component: freetypeAssignee: Marek Kašík <mkasik>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: behdad, fonts-bugs, kevin, mkasik, rdieter, redhat-bugzilla
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-03 16:54:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Use HarfBuzz
none
Use HarfBuzz none

Description Michael Kuhn 2014-09-02 18:34:40 UTC
Created attachment 933896 [details]
Use HarfBuzz

Description of problem:
FreeType can use HarfBuzz to provide improved hinting.

The attached patch adds a new with_harfbuzz flag that enables building FreeType with HarfBuzz support. (It is currently set to 1 but can easily be set to 0 to disable it by default.)

Comment 1 Behdad Esfahbod 2014-09-03 08:49:03 UTC
Note that this introduces a circular dependency since harfbuzz requires freetype to build.

Comment 2 Marek Kašík 2014-09-03 09:06:19 UTC
(In reply to Behdad Esfahbod from comment #1)
> Note that this introduces a circular dependency since harfbuzz requires
> freetype to build.

Yes, this is the reason why I haven't turned it on yet. I'll look at it again once this is solved upstream.

Regards

Marek

Comment 3 Michael Kuhn 2014-09-03 10:18:47 UTC
Created attachment 934031 [details]
Use HarfBuzz

Yes, building the package(s) from scratch requires one extra step:

1. Build freetype with --define 'with_harfbuzz 0'
2. Build harfbuzz
3. Build freetype

What would be your preferred way of solving this? Loading HarfBuzz dynamically in FreeType?

I also just noticed that the original patch included a typo for the "with_harfbuzz 0" case; I am attaching a fixed version for completeness.

Comment 4 Michael Kuhn 2014-09-03 10:53:26 UTC
> What would be your preferred way of solving this? Loading HarfBuzz
> dynamically in FreeType?

… which would obviously not solve the build time issues. Sorry, I guess I was not fully awake when writing this. :-)

Comment 5 Behdad Esfahbod 2014-11-20 20:59:12 UTC
I don't have a preferred way for this right now unfortunately.  :(

Comment 6 Rex Dieter 2015-05-06 14:04:12 UTC
Fedora has bootstrapping guidelines,
https://fedoraproject.org/wiki/Packaging:Guidelines#Bootstrapping

that could be used here.

Comment 7 Marek Kašík 2021-03-03 16:54:13 UTC
Hi,

I've enabled the support for HarfBuzz in FreeType in Fedora 34 via https://bugzilla.redhat.com/show_bug.cgi?id=1906714.
I'm closing this as a duplicate of it.
Regards.

*** This bug has been marked as a duplicate of bug 1906714 ***