Skip to content

Commit

Permalink
8247872: Upgrade HarfBuzz to the latest 2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
prrace committed Nov 2, 2020
1 parent d086757 commit 8d1ea46
Show file tree
Hide file tree
Showing 205 changed files with 31,880 additions and 19,411 deletions.
1 change: 0 additions & 1 deletion make/modules/java.desktop/lib/Awt2dLibraries.gmk
Expand Up @@ -435,7 +435,6 @@ endif
ifeq ($(USE_EXTERNAL_HARFBUZZ), true)
LIBHARFBUZZ_LIBS := $(HARFBUZZ_LIBS)
else
HARFBUZZ_CFLAGS := -DHAVE_OT -DHAVE_FALLBACK -DHAVE_UCDN -DHAVE_ROUND

# This is better than adding EXPORT_ALL_SYMBOLS
ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )
Expand Down
10 changes: 6 additions & 4 deletions src/java.desktop/share/legal/harfbuzz.md
@@ -1,16 +1,18 @@
## Harfbuzz v2.3.1
## Harfbuzz v2.7.2

### Harfbuzz License

http://cgit.freedesktop.org/harfbuzz/tree/COPYING
https://github.com/harfbuzz/harfbuzz/blob/master/COPYING

<pre>

HarfBuzz is licensed under the so-called "Old MIT" license. Details follow.
HarfBuzz is licensed under the so-called "Old MIT" license. Details follow.
For parts of HarfBuzz that are licensed under different licenses see individual
files names COPYING in subdirectories where applicable.

Copyright © 2010,2011,2012 Google, Inc.
Copyright © 2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020 Google, Inc.
Copyright © 2018,2019,2020 Ebrahim Byagowi
Copyright © 2019,2020 Facebook, Inc.
Copyright © 2012 Mozilla Foundation
Copyright © 2011 Codethink Limited
Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies)
Expand Down
Empty file.
126 changes: 0 additions & 126 deletions src/java.desktop/share/native/libharfbuzz/hb-aat-fdsc-table.hh

This file was deleted.

Expand Up @@ -66,7 +66,7 @@ struct ankr
{
const NNOffsetTo<GlyphAnchors> *offset = (this+lookupTable).get_value (glyph_id, num_glyphs);
if (!offset)
return Null(Anchor);
return Null (Anchor);
const GlyphAnchors &anchors = &(this+anchorData) + *offset;
return anchors[i];
}
Expand All @@ -76,13 +76,14 @@ struct ankr
TRACE_SANITIZE (this);
return_trace (likely (c->check_struct (this) &&
version == 0 &&
c->check_range (this, anchorData) &&
lookupTable.sanitize (c, this, &(this+anchorData))));
}

protected:
HBUINT16 version; /* Version number (set to zero) */
HBUINT16 flags; /* Flags (currently unused; set to zero) */
LOffsetTo<Lookup<NNOffsetTo<GlyphAnchors> > >
LOffsetTo<Lookup<NNOffsetTo<GlyphAnchors>>>
lookupTable; /* Offset to the table's lookup table */
LNNOffsetTo<HBUINT8>
anchorData; /* Offset to the glyph data table */
Expand Down
Expand Up @@ -82,7 +82,7 @@ struct BaselineTableFormat2Part
}

protected:
GlyphID stdGlyph; /* The specific glyph index number in this
HBGlyphID stdGlyph; /* The specific glyph index number in this
* font that is used to set the baseline values.
* This is the standard glyph.
* This glyph must contain a set of control points
Expand All @@ -101,11 +101,11 @@ struct BaselineTableFormat3Part
bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (c->check_struct (this) && lookupTable.sanitize (c));
return_trace (likely (c->check_struct (this) && lookupTable.sanitize (c)));
}

protected:
GlyphID stdGlyph; /* ditto */
HBGlyphID stdGlyph; /* ditto */
HBUINT16 ctlPoints[32]; /* ditto */
Lookup<HBUINT16>
lookupTable; /* Lookup table that maps glyphs to their
Expand Down

0 comments on commit 8d1ea46

Please sign in to comment.