vcl/workben/fftester.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) New commits: commit 5b2b1ee3f3036c64f1343e4544bf7fb7d4ccdfed Author: Caolán McNamara <caol...@redhat.com> Date: Wed Feb 7 15:31:10 2018 +0000
add basic font parsing to fftester Change-Id: Iaeebbe5dc569450ca1a47dbda15f168fb3b45ac4 Reviewed-on: https://gerrit.libreoffice.org/49362 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index 0b44e408cce6..e5bd5dbcd9d4 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -669,6 +669,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SvFileStream aFileStream(out, StreamMode::READ); ret = static_cast<int>((*pfnImport)(aFileStream)); } + else if (strcmp(argv[2], "sft") == 0) + { + SvFileStream aFileStream(out, StreamMode::READ); + std::vector<sal_uInt8> aData(aFileStream.remainingSize()); + aFileStream.ReadBytes(aData.data(), aData.size()); + (void)vcl::Font::identifyFont(aData.data(), aData.size()); + } + #endif } catch (...) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits