22. High-level API Reference
316
www.yoctopuce.com
YDisplayLayer
displaylayer
→
selectFont()
Selects a font to use for the next text drawing functions, by providing the name of the font file.
js
function selectFont(
fontname
)
cpp
int selectFont( string
fontname
)
m
-(int) selectFont : (NSString*)
fontname
pas
function selectFont(
fontname
: string): LongInt
vb
function selectFont( ) As Integer
cs
int selectFont( string
fontname
)
java
int selectFont( String
fontname
)
uwp
Task<int> selectFont( string
fontname
)
py
def selectFont(
fontname
)
php
function selectFont(
$fontname
)
es
function selectFont(
fontname
)
cmd
YDisplay
target
[-layer
layerId
] selectFont
fontname
You can use a built-in font as well as a font file that you have previously uploaded to the device built-in
memory. If you experience problems selecting a font file, check the device logs for any error message
such as missing font file or bad font file format.
Parameters :
fontname
the font file name
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...