Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pango
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
187
Issues
187
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
pango
Commits
ecbe132a
Commit
ecbe132a
authored
Sep 21, 2020
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fc: Add a getter for PangoFcFont::pattern
Properties are better with getters.
parent
c36b573f
Pipeline
#215468
passed with stages
in 54 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
docs/pango-sections.txt
docs/pango-sections.txt
+1
-0
pango/pangofc-font.c
pango/pangofc-font.c
+16
-0
pango/pangofc-font.h
pango/pangofc-font.h
+4
-0
No files found.
docs/pango-sections.txt
View file @
ecbe132a
...
...
@@ -1015,6 +1015,7 @@ pango_fc_font_get_glyph
pango_fc_font_get_unknown_glyph
pango_fc_font_kern_glyphs
pango_fc_font_get_languages
pango_fc_font_get_pattern
<SUBSECTION Standard>
PANGO_FC_FONT
PANGO_IS_FC_FONT
...
...
pango/pangofc-font.c
View file @
ecbe132a
...
...
@@ -1067,3 +1067,19 @@ pango_fc_font_get_languages (PangoFcFont *font)
return
languages
;
}
/**
* pango_fc_font_get_pattern:
* @font: a #PangoFcFont
*
* Returns the FcPattern that @font is based on.
*
* Returns: the fontconfig pattern for this font
*
* Since: 1.48
*/
FcPattern
*
pango_fc_font_get_pattern
(
PangoFcFont
*
font
)
{
return
font
->
font_pattern
;
}
pango/pangofc-font.h
View file @
ecbe132a
...
...
@@ -98,6 +98,9 @@ PANGO_AVAILABLE_IN_1_48
PangoLanguage
**
pango_fc_font_get_languages
(
PangoFcFont
*
font
);
PANGO_AVAILABLE_IN_1_48
FcPattern
*
pango_fc_font_get_pattern
(
PangoFcFont
*
font
);
PANGO_DEPRECATED_FOR
(
PANGO_GET_UNKNOWN_GLYPH
)
PangoGlyph
pango_fc_font_get_unknown_glyph
(
PangoFcFont
*
font
,
gunichar
wc
);
...
...
@@ -110,5 +113,6 @@ FT_Face pango_fc_font_lock_face (PangoFcFont *font);
PANGO_DEPRECATED_IN_1_44_FOR
(
pango_font_get_hb_font
)
void
pango_fc_font_unlock_face
(
PangoFcFont
*
font
);
G_END_DECLS
#endif
/* __PANGO_FC_FONT_H__ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment