Skip to content

Commit 77f4867

Browse files
committed
Implement text shaping with libraqm
1 parent 2b42f51 commit 77f4867

File tree

79 files changed

+185
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+185
-183
lines changed

lib/matplotlib/_text_helpers.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,6 @@ def warn_on_missing_glyph(codepoint, fontnames):
2525
f"({chr(codepoint).encode('ascii', 'namereplace').decode('ascii')}) "
2626
f"missing from font(s) {fontnames}.")
2727

28-
block = ("Hebrew" if 0x0590 <= codepoint <= 0x05ff else
29-
"Arabic" if 0x0600 <= codepoint <= 0x06ff else
30-
"Devanagari" if 0x0900 <= codepoint <= 0x097f else
31-
"Bengali" if 0x0980 <= codepoint <= 0x09ff else
32-
"Gurmukhi" if 0x0a00 <= codepoint <= 0x0a7f else
33-
"Gujarati" if 0x0a80 <= codepoint <= 0x0aff else
34-
"Oriya" if 0x0b00 <= codepoint <= 0x0b7f else
35-
"Tamil" if 0x0b80 <= codepoint <= 0x0bff else
36-
"Telugu" if 0x0c00 <= codepoint <= 0x0c7f else
37-
"Kannada" if 0x0c80 <= codepoint <= 0x0cff else
38-
"Malayalam" if 0x0d00 <= codepoint <= 0x0d7f else
39-
"Sinhala" if 0x0d80 <= codepoint <= 0x0dff else
40-
None)
41-
if block:
42-
_api.warn_external(
43-
f"Matplotlib currently does not support {block} natively.")
44-
4528

4629
def layout(string, font, *, kern_mode=Kerning.DEFAULT):
4730
"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy