From f24b0b9728f87d7599867a4ba6ec7d30da43b869 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 12 Apr 2018 13:40:45 +0430 Subject: [PATCH] Update the links and revive the dead ones --- src/hb-common.cc | 4 ++-- src/hb-common.h | 6 +++--- src/hb-coretext.cc | 6 +++--- src/hb-ft.cc | 2 +- src/hb-ot-cmap-table.hh | 12 ++++++------ src/hb-ot-layout-common-private.hh | 8 ++++---- src/hb-ot-layout-private.hh | 2 +- src/hb-ot-layout.h | 2 +- src/hb-ot-shape-complex-arabic.cc | 4 ++-- src/hb-ot-shape-complex-indic-private.hh | 2 +- src/hb-ot-shape-complex-indic.cc | 4 ++-- src/hb-ot-shape-complex-khmer.cc | 2 +- src/hb-ot-shape-complex-myanmar-private.hh | 2 +- src/hb-ot-shape-complex-myanmar.cc | 2 +- src/hb-ot-shape-complex-thai.cc | 2 +- src/hb-ot-shape-complex-use-private.hh | 2 +- src/hb-ot-shape-complex-use.cc | 2 +- src/hb-ot-shape-fallback.cc | 2 +- src/hb-ot-tag.cc | 9 ++++----- src/hb-private.hh | 4 ++-- src/hb-string-array.hh | 2 +- src/hb-unicode-private.hh | 18 +++++++++--------- test/api/test-buffer.c | 2 +- test/api/test-ot-tag.c | 6 +++--- test/api/test-shape.c | 2 +- 25 files changed, 54 insertions(+), 55 deletions(-) diff --git a/src/hb-common.cc b/src/hb-common.cc index b16c9324a..bc54db67b 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -412,7 +412,7 @@ hb_script_from_iso15924_tag (hb_tag_t tag) case HB_TAG('Q','a','a','i'): return HB_SCRIPT_INHERITED; case HB_TAG('Q','a','a','c'): return HB_SCRIPT_COPTIC; - /* Script variants from http://unicode.org/iso15924/ */ + /* Script variants from https://unicode.org/iso15924/ */ case HB_TAG('C','y','r','s'): return HB_SCRIPT_CYRILLIC; case HB_TAG('L','a','t','f'): return HB_SCRIPT_LATIN; case HB_TAG('L','a','t','g'): return HB_SCRIPT_LATIN; @@ -480,7 +480,7 @@ hb_script_to_iso15924_tag (hb_script_t script) hb_direction_t hb_script_get_horizontal_direction (hb_script_t script) { - /* http://goo.gl/x9ilM */ + /* https://docs.google.com/spreadsheets/d/1Y90M0Ie3MUJ6UVCRDOypOtijlMDLNNyyLk36T6iMu0o */ switch ((hb_tag_t) script) { /* Unicode-1.1 additions */ diff --git a/src/hb-common.h b/src/hb-common.h index 26200ce12..9040f5043 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -142,8 +142,8 @@ hb_language_get_default (void); /* hb_script_t */ -/* http://unicode.org/iso15924/ */ -/* http://goo.gl/x9ilM */ +/* https://unicode.org/iso15924/ */ +/* https://docs.google.com/spreadsheets/d/1Y90M0Ie3MUJ6UVCRDOypOtijlMDLNNyyLk36T6iMu0o */ /* Unicode Character Database property: Script (sc) */ typedef enum { @@ -323,7 +323,7 @@ typedef enum * since technically enums are int, and indeed, hb_script_t ends up being signed. * See this thread for technicalities: * - * http://lists.freedesktop.org/archives/harfbuzz/2014-March/004150.html + * https://lists.freedesktop.org/archives/harfbuzz/2014-March/004150.html */ _HB_SCRIPT_MAX_VALUE = HB_TAG_MAX, /*< skip >*/ _HB_SCRIPT_MAX_VALUE_SIGNED = HB_TAG_MAX_SIGNED /*< skip >*/ diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 8bb200161..7055e5f79 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -1005,7 +1005,7 @@ resize_and_retry: /* For right-to-left runs, CoreText returns the glyphs positioned such that * any trailing whitespace is to the left of (0,0). Adjust coordinate system * to fix for that. Test with any RTL string with trailing spaces. - * https://code.google.com/p/chromium/issues/detail?id=469028 + * https://crbug.com/469028 */ if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction)) { @@ -1058,7 +1058,7 @@ resize_and_retry: * However, even that wouldn't work if we were passed in the CGFont to * construct a hb_face to begin with. * - * See: http://github.com/harfbuzz/harfbuzz/pull/36 + * See: https://github.com/harfbuzz/harfbuzz/pull/36 * * Also see: https://bugs.chromium.org/p/chromium/issues/detail?id=597098 */ @@ -1248,7 +1248,7 @@ resize_and_retry: * directions. As such, disable the assert... It wouldn't crash, but * cursoring will be off... * - * http://crbug.com/419769 + * https://crbug.com/419769 */ if (0) { diff --git a/src/hb-ft.cc b/src/hb-ft.cc index e68960d5b..aa6c1a100 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -177,7 +177,7 @@ hb_ft_get_nominal_glyph (hb_font_t *font HB_UNUSED, /* For symbol-encoded OpenType fonts, we duplicate the * U+F000..F0FF range at U+0000..U+00FF. That's what * Windows seems to do, and that's hinted about at: - * http://www.microsoft.com/typography/otspec/recom.htm + * https://docs.microsoft.com/en-us/typography/opentype/spec/recom * under "Non-Standard (Symbol) Fonts". */ g = FT_Get_Char_Index (ft_font->ft_face, 0xF000u + unicode); if (!g) diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 4114b35d6..959ca97f2 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh @@ -30,16 +30,16 @@ #include "hb-open-type-private.hh" #include "hb-subset-plan.hh" -namespace OT { - - /* - * cmap -- Character To Glyph Index Mapping Table + * cmap -- Character to Glyph Index Mapping + * https://docs.microsoft.com/en-us/typography/opentype/spec/cmap */ - #define HB_OT_TAG_cmap HB_TAG('c','m','a','p') +namespace OT { + + struct CmapSubtableFormat0 { inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const @@ -738,7 +738,7 @@ struct cmap /* For symbol-encoded OpenType fonts, we duplicate the * U+F000..F0FF range at U+0000..U+00FF. That's what * Windows seems to do, and that's hinted about at: - * http://www.microsoft.com/typography/otspec/recom.htm + * https://docs.microsoft.com/en-us/typography/opentype/spec/recom * under "Non-Standard (Symbol) Fonts". */ return typed_obj->get_glyph (0xF000u + codepoint, glyph); } diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index e9240aaa7..9251a6a99 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -270,7 +270,7 @@ struct Script typedef RecordListOf