Skip to content

Commit cd0137f

Browse files
committed
Rename draw_glyph_to_screen -> draw_glyph_to_console
1 parent 680d457 commit cd0137f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/source/intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ The bitmap data can be converted to a list::
3636
243L, 230L, 207L, 170L, 132L, 76L, 17L, 0L, 0L, 0L, 0L, 0L, 0L] ...
3737

3838
However, two display it at the console, it's usually nicer to use the
39-
`freetypy.util.draw_glyph_to_screen` helper function::
39+
`freetypy.util.draw_glyph_to_console` helper function::
4040

41-
>>> ft.util.draw_glyph_to_screen(bitmap.to_list())
41+
>>> ft.util.draw_glyph_to_console(bitmap.to_list())
4242
.+*******++.
4343
+*############**.
4444
.*##################

lib/freetypy/tests/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from nose.tools import raises
4141

4242

43-
from ..util import vera_path, draw_glyph_to_screen
43+
from ..util import vera_path, draw_glyph_to_console
4444

4545

4646
try:
@@ -55,7 +55,7 @@ class SkipTest(Exception):
5555

5656

5757
__all__ = ['skip_if', 'vera_path', 'make_assert', 'raises',
58-
'draw_glyph_to_screen']
58+
'draw_glyph_to_console']
5959

6060

6161
def skip_if(predicate):

lib/freetypy/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@
3737
import os
3838

3939

40-
__all__ = ['vera_path', 'draw_glyph_to_screen']
40+
__all__ = ['vera_path', 'draw_glyph_to_console']
4141

4242

4343
def vera_path():
4444
return os.path.join(os.path.dirname(__file__), 'data', 'Vera.ttf')
4545

4646

47-
def draw_glyph_to_screen(a):
47+
def draw_glyph_to_console(a):
4848
"""
4949
Draws a single glyph, as either a nested list or a Numpy array, to
50-
the screen.
50+
the console.
5151
"""
5252
shades = ' .+*#'
5353

0 commit comments

Comments
 (0)