Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement multi-font embedding for PDF Backend #20804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aitikgupta wants to merge 31 commits into matplotlib:main from aitikgupta:pdf-fallback
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d0906aa
Parse fallback_list through wrapper
aitikgupta Jul 25, 2021
f6f2fd7
Define new/modify previous FT2Font functions
aitikgupta Jul 25, 2021
5199773
Implement new/modify previous FT2Font functions
aitikgupta Jul 25, 2021
88da97f
Parse multiple fonts for a single FT2Font object
aitikgupta Jul 25, 2021
c6c3a45
Trigger font fallback for Agg backend
aitikgupta Jul 25, 2021
e868fbc
Remove prints
aitikgupta Aug 7, 2021
4230469
Cleanup wrapper
aitikgupta Aug 7, 2021
991c796
Remove stale prints
aitikgupta Aug 7, 2021
fa385eb
Do not warn for get_char_index
aitikgupta Aug 7, 2021
471ae8c
Left != Right kerning comment
aitikgupta Aug 7, 2021
86878c8
Windows compiler fix
aitikgupta Aug 7, 2021
5ccb7de
Add fallback test for Agg backend
aitikgupta Aug 13, 2021
ed495d3
Debug fontNames
aitikgupta Jul 28, 2021
d87ada8
Segfaults on exit
aitikgupta Jul 29, 2021
adebae4
More work on PDF backend
aitikgupta Jul 31, 2021
9983c66
Implement another approach
aitikgupta Aug 1, 2021
2ef863e
Revisit the approach
aitikgupta Aug 3, 2021
f12c295
Type3 PDF Backend works!
aitikgupta Aug 6, 2021
1327b82
Type42 PDF fallback works!
aitikgupta Aug 6, 2021
799ffde
Create a fill_glyphs method
aitikgupta Aug 7, 2021
7ce1805
Use fill_glyphs instead of set_text
aitikgupta Aug 7, 2021
ac1c9c9
Cleanup wrapper
aitikgupta Aug 7, 2021
8a30aaf
Few cleanups
aitikgupta Aug 7, 2021
e675047
Rebase from Agg backend
aitikgupta Aug 7, 2021
1b53070
Specify font number for TTC fonts
aitikgupta Aug 13, 2021
0e0d92c
Flake8 fixes
aitikgupta Aug 13, 2021
cb50510
Add multi-font tests for PDF backend
aitikgupta Aug 13, 2021
70b0e18
Add baseline images
aitikgupta Aug 13, 2021
42b6d6f
Merge branch 'master' into pdf-fallback
aitikgupta Aug 13, 2021
8fd0729
Fix memory leak and render tofu
aitikgupta Aug 17, 2021
7c88286
Check if fallback font is available
aitikgupta Aug 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup wrapper
  • Loading branch information
aitikgupta committed Aug 13, 2021
commit ac1c9c9ff553b55e79111cf32bd608b7a9ff77e9
6 changes: 0 additions & 6 deletions src/ft2font_wrapper.cpp
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,6 @@ static PyObject *PyFT2Font_load_char(PyFT2Font *self, PyObject *args, PyObject *

FT2Font *ft_object = NULL;
CALL_CPP("load_char", (self->x->load_char(charcode, flags, ft_object, (bool)fallback)));
// printf("Char %ld loaded to: %lu\n", charcode, ft_object->get_face()->num_glyphs);

FT2Font *ft_object = NULL;
CALL_CPP("load_char", (self->x->load_char(charcode, flags, ft_object, (bool)fallback)));
Expand Down Expand Up @@ -818,11 +817,6 @@ static PyObject *PyFT2Font_load_glyph(PyFT2Font *self, PyObject *args, PyObject
return NULL;
}

// if (!PyArg_ParseTupleAndKeywords(
// args, kwds, "I|i$p:load_glyph", (char **)names, &glyph_index, &flags, &fallback)) {
// return NULL;
// }

FT2Font *ft_object = NULL;
CALL_CPP("load_glyph", (self->x->load_glyph(glyph_index, flags, ft_object, (bool)fallback)));

Expand Down

AltStyle によって変換されたページ (->オリジナル) /