KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>
#include <wx/filename.h>
#include <wx/filefn.h>
#include <wx/ffile.h>
#include <wx/utils.h>
#include <wx/image.h>
#include <zlib.h>
#include <plotters/plotters_pslike.h>
#include <advanced_config.h>
#include <render_settings.h>
#include <trigo.h>
#include <font/font.h>
#include <font/stroke_font.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <qa_utils/pdf_test_utils.h>
Go to the source code of this file.
Functions | |
static wxString | getTempPdfPath (const wxString &name) |
BOOST_AUTO_TEST_CASE (PlotMultilingualAllStylesMappings) | |
BOOST_AUTO_TEST_CASE (PlotMultilingualText) | |
BOOST_AUTO_TEST_CASE (PlotMultilingualTextBold) | |
BOOST_AUTO_TEST_CASE (PlotMultilingualTextItalic) | |
BOOST_AUTO_TEST_CASE (PlotMultilingualTextBoldItalic) | |
BOOST_AUTO_TEST_CASE (PlotMultilingualTextWithYOffset) | |
BOOST_AUTO_TEST_CASE (PlotOutlineFontEmbedding) | |
BOOST_AUTO_TEST_CASE | ( | PlotMultilingualAllStylesMappings | ) |
Definition at line 54 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BuildTextAttributes(), CountOccurrences(), PDF_PLOTTER::EndPlot(), getTempPdfPath(), LoadStrokeFontUnique(), MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PDF_PLOTTER::PlotText(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
BOOST_AUTO_TEST_CASE | ( | PlotMultilingualText | ) |
Definition at line 108 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), BuildTextAttributes(), PDF_PLOTTER::EndPlot(), getTempPdfPath(), LoadStrokeFontUnique(), MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PdfContains(), PDF_PLOTTER::PlotText(), RasterizePdfCountDark(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
BOOST_AUTO_TEST_CASE | ( | PlotMultilingualTextBold | ) |
Definition at line 175 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BuildTextAttributes(), PDF_PLOTTER::EndPlot(), getTempPdfPath(), LoadStrokeFontUnique(), MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PdfContains(), PDF_PLOTTER::PlotText(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
BOOST_AUTO_TEST_CASE | ( | PlotMultilingualTextBoldItalic | ) |
Definition at line 228 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BuildTextAttributes(), PDF_PLOTTER::EndPlot(), getTempPdfPath(), LoadStrokeFontUnique(), MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PdfContains(), PDF_PLOTTER::PlotText(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
BOOST_AUTO_TEST_CASE | ( | PlotMultilingualTextItalic | ) |
Definition at line 203 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BuildTextAttributes(), PDF_PLOTTER::EndPlot(), getTempPdfPath(), LoadStrokeFontUnique(), MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PdfContains(), PDF_PLOTTER::PlotText(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
BOOST_AUTO_TEST_CASE | ( | PlotMultilingualTextWithYOffset | ) |
Definition at line 257 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BuildTextAttributes(), PDF_PLOTTER::EndPlot(), ADVANCED_CFG::GetCfg(), getTempPdfPath(), LoadStrokeFontUnique(), ADVANCED_CFG::m_PDFStrokeFontYOffset, MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PDF_PLOTTER::PlotText(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
BOOST_AUTO_TEST_CASE | ( | PlotOutlineFontEmbedding | ) |
Definition at line 298 of file test_pdf_unicode_plot.cpp.
References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), BuildTextAttributes(), PDF_PLOTTER::EndPlot(), KIFONT::FONT::GetFont(), getTempPdfPath(), KI_TEST::GetTestDataRootDir(), MaybeRemoveFile(), PDF_PLOTTER::OpenFile(), PDF_PLOTTER::PlotText(), ReadPdfWithDecompressedStreams(), PLOTTER::SetRenderSettings(), PDF_PLOTTER::SetViewport(), and PDF_PLOTTER::StartPlot().
|
static |
Definition at line 50 of file test_pdf_unicode_plot.cpp.
References getTempPdfPath(), MakeTempPdfPath(), and name.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and getTempPdfPath().