@@ -45,12 +45,11 @@ font = Font('fonts/MyFont.ttf')
4545- [ ` get_format ` ] ( #get_format )
4646- [ ` get_name ` ] ( #get_name )
4747- [ ` get_names ` ] ( #get_names )
48- - [ ` get_script_by_character ` ] ( #get_script_by_character )
49- - [ ` get_script_by_code ` ] ( #get_script_by_code )
50- - [ ` get_scripts ` ] ( #get_scripts )
5148- [ ` get_style_flag ` ] ( #get_style_flag )
5249- [ ` get_style_flags ` ] ( #get_style_flags )
5350- [ ` get_ttfont ` ] ( #get_ttfont )
51+ - [ ` get_unicode_blocks ` ] ( #get_unicode_blocks )
52+ - [ ` get_unicode_scripts ` ] ( #get_unicode_scripts )
5453- [ ` get_variable_axes ` ] ( #get_variable_axes )
5554- [ ` get_variable_axis_by_tag ` ] ( #get_variable_axis_by_tag )
5655- [ ` get_variable_axes_tags ` ] ( #get_variable_axes_tags )
@@ -159,45 +158,6 @@ Gets the names records mapped by their property name.
159158names = font.get_names()
160159```
161160
162- - #### get_script_by_character
163- ``` python
164- """
165- Gets the script by character.
166-
167- :param char: The character
168- :type char: str
169-
170- :returns: The script by character.
171- :rtype: dict
172- """
173- script = font.get_script_by_character(char = ' a' )
174- ```
175-
176- - #### get_script_by_code
177- ``` python
178- """
179- Gets the script by unicode code point.
180-
181- :param code: The code
182- :type code: int
183-
184- :returns: The script by code.
185- :rtype: dict
186- """
187- script = font.get_script_by_code(code = 34 )
188- ```
189-
190- - #### get_scripts
191- ``` python
192- """
193- Gets the scripts supported by the font.
194-
195- :returns: The scripts.
196- :rtype: list of dict
197- """
198- scripts = font.get_scripts()
199- ```
200-
201161- #### get_style_flag
202162``` python
203163"""
@@ -234,6 +194,36 @@ Gets the wrapped TTFont instance.
234194ttfont = font.get_ttfont()
235195```
236196
197+ - #### get_unicode_blocks
198+ ``` python
199+ """
200+ Gets the unicode blocks and their coverage.
201+ Only blocks with coverage >= coverage_threshold (0.0 <= coverage_threshold <= 1.0) will be returned.
202+
203+ :param coverage_threshold: The minumum required coverage for a block to be returned.
204+ :type coverage_threshold: float
205+
206+ :returns: The list of unicode blocks.
207+ :rtype: list of dicts
208+ """
209+ blocks = font.get_unicode_blocks(coverage_threshold = 0.00001 )
210+ ```
211+
212+ - #### get_unicode_scripts
213+ ``` python
214+ """
215+ Gets the unicode scripts and their coverage.
216+ Only scripts with coverage >= coverage_threshold (0.0 <= coverage_threshold <= 1.0) will be returned.
217+
218+ :param coverage_threshold: The minumum required coverage for a script to be returned.
219+ :type coverage_threshold: float
220+
221+ :returns: The list of unicode scripts.
222+ :rtype: list of dicts
223+ """
224+ scripts = font.get_unicode_scripts(coverage_threshold = 0.00001 )
225+ ```
226+
237227- #### get_variable_axes
238228``` python
239229"""
0 commit comments