40#include <visp3/core/vpConfig.h>
42#if defined(VISP_HAVE_CATCH2)
45#include <catch_amalgamated.hpp>
46#include <visp3/core/vpFont.h>
49#ifdef ENABLE_VISP_NAMESPACE
52TEST_CASE(
"Segmentation fault reproducer",
"[draw_text_font]")
54 std::ostringstream oss;
55 oss <<
"Computation time: " << std::fixed << std::setprecision(2) << 10.5168 <<
" ms/";
57 SECTION(
"GENERIC_MONOSPACE")
61 SECTION(
"unsigned char")
63 REQUIRE_NOTHROW([&]() {
71 REQUIRE_NOTHROW([&]() {
78 SECTION(
"TRUETYPE_FILE")
82 SECTION(
"unsigned char")
84 REQUIRE_NOTHROW([&]() {
92 REQUIRE_NOTHROW([&]() {
100TEST_CASE(
"Sanity check",
"[draw_text_font]")
102 const std::string text =
"ViSP standing for Visual Servoing Platform is a modular cross platform library. "
103 "0123456789 ,;:!?./§ &é'(-è_çà)=";
105 SECTION(
"GENERIC_MONOSPACE")
109 SECTION(
"unsigned char")
111 REQUIRE_NOTHROW([&]() {
119 REQUIRE_NOTHROW([&]() {
126 SECTION(
"TRUETYPE_FILE")
130 SECTION(
"unsigned char")
132 REQUIRE_NOTHROW([&]() {
140 REQUIRE_NOTHROW([&]() {
148int main(
int argc,
char *argv[])
150 Catch::Session session;
151 session.applyCommandLine(argc, argv);
152 int numFailed = session.run();
156int main() {
return EXIT_SUCCESS; }
Font drawing functions for image.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Definition of the vpImage class member functions.