Commit 71e7d2b3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix various broken links

All these were pointed out by gi-docgen warnings.
parent e668179e
......@@ -12,7 +12,7 @@ to instruct Pango about direction of text, though in most cases Pango detects
that correctly and automatically. For application that need more direct
control over bidirectional setting of text, Pango provides APIs such as
[func@unichar_direction], [func@find_base_dir], [func@get_mirror_char]
or [func@bidi_type_for_unichar].
or [type_func@Pango.BidiType.for_unichar].
# Vertical Text
......@@ -43,7 +43,7 @@ of the context can be accessed using [method@Pango.Context.get_base_gravity] and
*resolved* gravity of it using [method@Pango.Context.get_gravity]. The resolved
gravity is the same as the base gravity for the most part, except that if the base
gravity is set to `PANGO_GRAVITY_AUTO`, the resolved gravity will depend on the
current matrix set on context, and is derived using [func@gravity_get_for_matrix].
current matrix set on context, and is derived using [type_func@Pango.Gravity.get_for_matrix].
The next thing an application may want to set on the context is the *gravity hint*.
A [enum@Pango.GravityHint] instructs how different scripts should react to the set
......
......@@ -42,7 +42,7 @@ or by parsing a string such as
Helvetica Bold 12pt
with [method@Pango.FontDescription.from_string].
with [type_func@Pango.FontDescription.from_string].
# Glyphs
......
......@@ -1418,7 +1418,7 @@ append_field (GString *str, const char *what, const FieldMap *map, int n_element
*
* Creates a string representation of a font description.
*
* See [method@Pango.FontDescription.from_string] for a description
* See [type_func@Pango.FontDescription.from_string] for a description
* of the format of the string representation. The family list in
* the string description will only have a terminating comma if
* the last word of the list is a valid style option.
......
......@@ -49,7 +49,7 @@ static GHashTable *name_map = NULL; /* MT-safe */
*
* Allocate a new attribute type ID.
*
* The attribute type name can be accessed later by using [func@attr_type_get_name].
* The attribute type name can be accessed later by using [type_func@Pango.AttrType.get_name].
*
* Return value: the new type ID.
*/
......@@ -83,7 +83,7 @@ pango_attr_type_register (const gchar *name)
* Fetches the attribute type name.
*
* The attribute type name is the string passed in when registering the type
* using [func@attr_type_register].
* using [type_func@attr_type_register].
*
* The returned value is an interned string (see g_intern_string() for what
* that means) that should not be modified or freed.
......
......@@ -164,7 +164,7 @@ typedef struct _PangoAttrIterator PangoAttrIterator;
* The `PangoAttrType` distinguishes between different types of attributes.
*
* Along with the predefined values, it is possible to allocate additional
* values for custom attributes using [func@attr_type_register]. The predefined
* values for custom attributes using [type_func@attr_type_register]. The predefined
* values are given below. The type of structure used to store the attribute is
* listed in parentheses after the description.
*/
......@@ -442,7 +442,7 @@ struct _PangoAttrSize
* @attr: the common portion of the attribute
* @ink_rect: the ink rectangle to restrict to
* @logical_rect: the logical rectangle to restrict to
* @data: user data set (see [func@attr_shape_new_with_data])
* @data: user data set (see [type_func@Pango.AttrShape.new_with_data])
* @copy_func: copy function for the user data
* @destroy_func: destroy function for the user data
*
......
......@@ -273,7 +273,7 @@ resolved:
*
* This function is useful to categorize characters into left-to-right
* letters, right-to-left letters, and everything else. If full Unicode
* bidirectional type of a character is needed, [func@bidi_type_for_unichar]
* bidirectional type of a character is needed, [type_func@Pango.BidiType.for_unichar]
* can be used instead.
*
* Return value: the direction of the character.
......
......@@ -398,7 +398,7 @@ pango_context_get_font_description (PangoContext *context)
* Sets the global language tag for the context.
*
* The default language for the locale of the running process
* can be found using [func@language_get_default].
* can be found using [type_func@Pango.Language.get_default].
*/
void
pango_context_set_language (PangoContext *context,
......@@ -529,7 +529,7 @@ pango_context_get_base_gravity (PangoContext *context)
*
* This is similar to [method@Pango.Context.get_base_gravity],
* except for when the base gravity is %PANGO_GRAVITY_AUTO for
* which [func@gravity_get_for_matrix] is used to return the
* which [type_func@Pango.Gravity.get_for_matrix] is used to return the
* gravity from the current context matrix.
*
* Return value: the resolved gravity for the context.
......@@ -1746,7 +1746,7 @@ update_metrics_from_items (PangoFontMetrics *metrics,
* @language: (allow-none): language tag used to determine which script to get
* the metrics for. %NULL means that the language tag from the context
* will be used. If no language tag is set on the context, metrics
* for the default language (as determined by [func@language_get_default]
* for the default language (as determined by [type_func@Pango.Language.get_default]
* will be returned.
*
* Get overall metric information for a particular font description.
......
......@@ -68,7 +68,7 @@ pango_font_map_init (PangoFontMap *fontmap G_GNUC_UNUSED)
*
* Creates a `PangoContext` connected to @fontmap.
*
* This is equivalent to [method@Pango.Context.new] followed by
* This is equivalent to [ctor@Pango.Context.new] followed by
* [method@Pango.Context.set_font_map].
*
* If you are using Pango as part of a higher-level system,
......
......@@ -276,7 +276,7 @@ pango_gravity_get_for_script (PangoScript script,
* The gravity is determined based on the script, East Asian width,
* base gravity, and hint,
*
* This function is similar to [func@gravity_get_for_script] except
* This function is similar to [type_func@Pango.Gravity.get_for_script] except
* that this function makes a distinction between narrow/half-width and
* wide/full-width characters also. Wide/full-width characters always
* stand *upright*, that is, they always take the base gravity,
......
......@@ -318,7 +318,7 @@ pango_language_get_default (void)
* lowercase, mapping '_' to '-', and stripping all characters other
* than letters and '-'.
*
* Use [func@language_get_default] if you want to get the `PangoLanguage`
* Use [type_func@Pango.Language.get_default] if you want to get the `PangoLanguage`
* for the current locale of the process.
*
* Return value: (transfer none) (nullable): an opaque pointer to a
......@@ -387,12 +387,12 @@ const char *
/**
* pango_language_matches:
* @language: (nullable): a language tag (see [func@language_from_string]),
* @language: (nullable): a language tag (see [type_func@Pango.Language.from_string]),
* %NULL is allowed and matches nothing but '*'
* @range_list: a list of language ranges, separated by ';', ':',
* ',', or space characters.
* Each element must either be '*', or a RFC 3066 language range
* canonicalized as by [func@language_from_string]
* canonicalized as by [type_func@Pango.Language.from_string]
*
* Checks if a language tag matches one of the elements in a list of
* language ranges.
......@@ -574,7 +574,7 @@ static const LangInfo lang_texts[] = {
* as sample text in a font selection dialog.
*
* If @language is %NULL, the default language as found by
* [func@language_get_default] is used.
* [type_func@Pango.Language.get_default] is used.
*
* If Pango does not have a sample string for @language, the classic
* "The quick brown fox..." is returned. This can be detected by
......@@ -639,7 +639,7 @@ pango_language_get_sample_string (PangoLanguage *language)
* though, except that it is positive if the return value is not
* %NULL, and it is a small number.
*
* The [func@language_includes_script] function uses this function
* The [method@Pango.Language.includes_script] function uses this function
* internally.
*
* Note: while the return value is declared as `PangoScript`, the
......@@ -704,7 +704,7 @@ pango_language_get_scripts (PangoLanguage *language,
* a particular section of text. It probably is not useful
* for applications in most circumstances.
*
* This function uses [func@language_get_scripts] internally.
* This function uses [method@Pango.Language.get_scripts] internally.
*
* Return value: %TRUE if @script is one of the scripts used
* to write @language or if nothing is known about @language
......@@ -845,10 +845,10 @@ out:
*
* The list is specified by the `PANGO_LANGUAGE` or `LANGUAGE` environment
* variables, in order of preference. Note that this list does not necessarily
* include the language returned by [func@language_get_default].
* include the language returned by [type_func@Pango.Language.get_default].
*
* When choosing language-specific resources, such as the sample
* text returned by [func@language_get_sample_string], you should
* text returned by [method@Pango.Language.get_sample_string], you should
* first try the default language, followed by the languages returned
* by this function.
*
......@@ -890,7 +890,7 @@ pango_language_get_preferred (void)
* separated by colons or other separators. This function
* will return the first language in the parsed list that Pango
* believes may use @script for writing. This last predicate
* is tested using [func@language_includes_script]. This can
* is tested using [method@Pango.Language.includes_script]. This can
* be used to control Pango's font selection for non-primary
* languages. For example, a `PANGO_LANGUAGE` enviroment variable
* set to "en:fa" makes Pango choose fonts suitable for Persian (fa)
......
......@@ -2071,7 +2071,7 @@ pango_layout_move_cursor_visually (PangoLayout *layout,
* layout, the closest position is chosen (the position will be clamped
* inside the layout). If the X position is not within the layout, then
* the start or the end of the line is chosen as described for
* [method@Pango.Layout.line_x_to_index]. If either the X or Y positions
* [method@Pango.LayoutLine.x_to_index]. If either the X or Y positions
* were not inside the layout, then the function returns %FALSE; on an
* exact hit, it returns %TRUE.
*
......
......@@ -209,7 +209,7 @@ pango_cairo_context_set_resolution (PangoContext *context,
* @context: a `PangoContext`, from a pangocairo font map
*
* Gets the resolution for the context.
* See [method@PangoCairo.Context.set_resolution]
* See [func@PangoCairo.context_set_resolution]
*
* Return value: the resolution in "dots per inch". A negative value will
* be returned if no resolution has previously been set.
......@@ -287,7 +287,7 @@ pango_cairo_context_set_font_options (PangoContext *context,
* @context: a `PangoContext`, from a pangocairo font map
*
* Retrieves any font rendering options previously set with
* [method@PangoCairo.Context.set_font_options].
* [func@PangoCairo.context_set_font_options].
*
* This function
* does not report options that are derived from the target
......@@ -391,7 +391,7 @@ pango_cairo_context_set_shape_renderer (PangoContext *context,
*
* Retrieves callback function and associated user data for rendering
* attributes of type %PANGO_ATTR_SHAPE as set by
* [method@PangoCairo.Context.set_shape_renderer], if any.
* [func@PangoCairo.context_set_shape_renderer], if any.
*
* Return value: (transfer none) (nullable): the shape rendering callback
* previously set on the context, or %NULL if no shape rendering callback
......
......@@ -51,7 +51,7 @@ pango_cairo_font_map_default_init (PangoCairoFontMapIface *iface)
*
* A fontmap is used to cache information about available fonts,
* and holds certain global parameters such as the resolution.
* In most cases, you can use `func@font_map_get_default]
* In most cases, you can use `func@PangoCairo.font_map_get_default]
* instead.
*
* Note that the type of the returned object will depend
......@@ -114,8 +114,8 @@ pango_cairo_font_map_new (void)
* Creates a new `PangoCairoFontMap` object of the type suitable
* to be used with cairo font backend of type @fonttype.
*
* In most cases one should simply use [func@font_map_new], or
* in fact in most of those cases, just use [func@font_map_get_default].
* In most cases one should simply use [type_func@PangoCairo.FontMap.new], or
* in fact in most of those cases, just use [func@PangoCairo.FontMap.get_default].
*
* Return value: (transfer full) (nullable): the newly allocated
* `PangoFontMap` of suitable type which should be freed with
......@@ -201,11 +201,11 @@ pango_cairo_font_map_get_default (void)
* This function only changes the default fontmap for
* the current thread. Default fontmaps of existing threads
* are not changed. Default fontmaps of any new threads will
* still be created using [func@font_map_new].
* still be created using [type_func@PangoCairo.FontMap.new].
*
* A value of %NULL for @fontmap will cause the current default
* font map to be released and a new default font map to be created
* on demand, using [func@font_map_new].
* on demand, using [type_func@PangoCairo.FontMap.new].
*
* Since: 1.22
*/
......
......@@ -53,7 +53,7 @@ typedef struct _PangoFcDecoderClass PangoFcDecoderClass;
*
* It's the interface that is used to define a custom encoding for a font.
* These objects are created in your code from a function callback that was
* originally registered with [method@PangoFc.FcFontMap.add_decoder_find_func].
* originally registered with [method@PangoFc.FontMap.add_decoder_find_func].
* Pango requires information about the supported charset for a font as well
* as the individual character to glyph conversions. Pango gets that
* information via the #get_charset and #get_glyph callbacks into your
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment