Implemented using the single-file public domain library "stb_truetype": https://github.com/nothings/stb/blob/master/stb_truetype.h PS: Patch 1/3 is a simple fix suggested by Slavomir which strictly speaking is independent from the other two patches. v2 changes: - 2 new patches (patches 4/5 and 5/5). - Added a procedure for finding a font file (patch 2/5). - Addressed the comments made by Slavomir in his review of the previous version. Yordan Karadzhov (VMware) (5): kernel-shark: Simplify the drawing of the Triangle Fan kernel-shark: Add support for drawing text kernel-shark: Add text rendering to the plotting example kernel-shark: Add hello_kernel plugin kernel-shark: Drop Freeglut as a compulsory dependency kernel-shark/build/deff.h.cmake | 3 + kernel-shark/doc/dox_config | 1 + kernel-shark/examples/CMakeLists.txt | 14 +- kernel-shark/examples/dataplot.cpp | 11 + kernel-shark/examples/hello_kernel.c | 67 + kernel-shark/src/CMakeLists.txt | 4 +- kernel-shark/src/KsGLWidget.cpp | 4 - kernel-shark/src/KsPlotTools.cpp | 4 - kernel-shark/src/libkshark-plot.c | 239 +- kernel-shark/src/libkshark-plot.h | 46 + kernel-shark/src/libkshark-plugin.h | 3 + kernel-shark/src/stb_truetype.h | 4882 ++++++++++++++++++++++++++ 12 files changed, 5243 insertions(+), 35 deletions(-) create mode 100644 kernel-shark/examples/hello_kernel.c create mode 100644 kernel-shark/src/stb_truetype.h -- 2.20.1
![]() |