MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / setFont

Method setFont

CodenameOne/src/com/codename1/ui/Graphics.java:262–268  ·  view source on GitHub ↗
(Font font)

Source from the content-addressed store, hash-verified

260 ///
261 /// - `font`: the font used with the drawString method calls
262 public void setFont(Font font) {
263
264 this.current = font;
265 if (!(font instanceof CustomFont)) {
266 impl.setNativeFont(nativeGraphics, font.getNativeFont());
267 }
268 }
269
270 /// Returns the x clipping position
271 ///

Callers 6

makeDigitFrameMethod · 0.95
setClipMethod · 0.95
createSampleImageMethod · 0.95
makeFaceMethod · 0.95
loadTextImageMethod · 0.95
loadTextImageMethod · 0.95

Calls 2

setNativeFontMethod · 0.45
getNativeFontMethod · 0.45

Tested by 3

makeDigitFrameMethod · 0.76
loadTextImageMethod · 0.76
loadTextImageMethod · 0.76