From 27aedd5cdc8d71c765a72df9c98c354fabfae82f Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 23:05:03 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- js/x11/examples/smoketest/listfonts.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 js/x11/examples/smoketest/listfonts.js diff --git a/js/x11/examples/smoketest/listfonts.js b/js/x11/examples/smoketest/listfonts.js new file mode 100644 index 0000000..bef4066 --- /dev/null +++ b/js/x11/examples/smoketest/listfonts.js @@ -0,0 +1,9 @@ +var x11 = require('../../lib'); +var X = x11.createClient(function(err, display) { + X.ListFonts('*', 1000, function(err, list) { + list.forEach(function(ext) { + console.log(ext); + }); + X.terminate(); + }); +});