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
213
Issues
213
List
Boards
Labels
Service Desk
Milestones
Merge Requests
11
Merge Requests
11
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
e8181138
Commit
e8181138
authored
Sep 18, 2020
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils: Don't use deprecated api
Port pango-viewer to use the new pango_fc_font_map_set_default_substitute.
parent
f36934d5
Pipeline
#214890
passed with stages
in 1 minute
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
utils/viewer-pangoft2.c
utils/viewer-pangoft2.c
+1
-1
utils/viewer-pangoxft.c
utils/viewer-pangoxft.c
+2
-2
No files found.
utils/viewer-pangoft2.c
View file @
e8181138
...
...
@@ -51,7 +51,7 @@ pangoft2_view_create (const PangoViewer *klass G_GNUC_UNUSED)
fontmap
=
pango_ft2_font_map_new
();
pango_ft2_font_map_set_resolution
(
PANGO_FT2_FONT_MAP
(
fontmap
),
opt_dpi
,
opt_dpi
);
pango_f
t2_font_map_set_default_substitute
(
PANGO_FT2
_FONT_MAP
(
fontmap
),
substitute_func
,
NULL
,
NULL
);
pango_f
c_font_map_set_default_substitute
(
PANGO_FC
_FONT_MAP
(
fontmap
),
substitute_func
,
NULL
,
NULL
);
return
fontmap
;
}
...
...
utils/viewer-pangoxft.c
View file @
e8181138
...
...
@@ -51,8 +51,8 @@ pangoxft_view_create (const PangoViewer *klass)
XftInit
(
NULL
);
pango_
xft_set_default_substitute
(
instance
->
display
,
instance
->
screen
,
default_substitute
,
NULL
,
NULL
);
pango_
fc_font_map_set_default_substitute
(
PANGO_FC_FONT_MAP
(
pango_xft_get_font_map
(
instance
->
display
,
instance
->
screen
))
,
default_substitute
,
NULL
,
NULL
);
return
instance
;
}
...
...
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