From c8d974444507a96bebc1ef46869809cb8c9ce5c7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 24 Aug 2022 15:40:16 +0300 Subject: Tell LibreOfficeKit clients what fonts in a document are missing on the machine Use the OutputDevice::StartTrackingFontMappingUse() and OutputDevice::FinishTrackingFontMappingUse() functionality that was added last year. Add a new LibreOfficeKit document callback: LOK_CALLBACK_FONTS_MISSING. "Font" here means just the family name. We dont really know what style from the family is missing. Change-Id: Iec4349b5827e7d1dbdde7f8a9f8da92efde429e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138802 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- libreofficekit/source/gtk/lokdocview.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'libreofficekit') diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index a092a1dbf1ab..4c5dbdd9f595 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -1464,6 +1464,7 @@ callback (gpointer pData) case LOK_COMMAND_BLOCKED: case LOK_CALLBACK_SC_FOLLOW_JUMP: case LOK_CALLBACK_PRINT_RANGES: + case LOK_CALLBACK_FONTS_MISSING: { // TODO: Implement me break; -- cgit