From: Jean-Philippe Bruyère Date: Mon, 28 Feb 2022 07:44:34 +0000 (+0100) Subject: printf->LOG in font cache init X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=4a53c904b2f7d6b11394f0df18066d20326b0cfd;p=jp%2Fvkvg.git printf->LOG in font cache init --- diff --git a/src/vkvg_device.c b/src/vkvg_device.c index 6a48917..4a266cc 100644 --- a/src/vkvg_device.c +++ b/src/vkvg_device.c @@ -74,7 +74,7 @@ void _device_init (VkvgDevice dev, VkInstance inst, VkPhysicalDevice phy, VkDevi dev->fence = vkh_fence_create_signaled ((VkhDevice)dev); _device_create_pipeline_cache (dev); - _fonts_cache_create (dev); + _fonts_cache_create (dev); if (dev->deferredResolve || dev->samples == VK_SAMPLE_COUNT_1_BIT){ dev->renderPass = _device_createRenderPassNoResolve (dev, VK_ATTACHMENT_LOAD_OP_LOAD, VK_ATTACHMENT_LOAD_OP_LOAD); dev->renderPass_ClearStencil = _device_createRenderPassNoResolve (dev, VK_ATTACHMENT_LOAD_OP_LOAD, VK_ATTACHMENT_LOAD_OP_CLEAR); diff --git a/src/vkvg_fonts.c b/src/vkvg_fonts.c index ea2c489..ab8c7fd 100644 --- a/src/vkvg_fonts.c +++ b/src/vkvg_fonts.c @@ -45,9 +45,9 @@ void _fonts_cache_create (VkvgDevice dev){ mtx_init (&cache->mutex, mtx_plain); #ifdef VKVG_USE_FONTCONFIG - cache->config = FcInitLoadConfigAndFonts(); + cache->config = FcInitLoadConfigAndFonts (); if (!cache->config) { - fprintf(stderr, "Font config initialisation failed, consider using 'FONTCONFIG_PATH' and 'FONTCONFIG_FILE' environmane\ + LOG(VKVG_LOG_DEBUG, "Font config initialisation failed, consider using 'FONTCONFIG_PATH' and 'FONTCONFIG_FILE' environmane\ variables to point to 'fonts.conf' needed for FontConfig startup"); assert(cache->config); }