stub out demon/fontprovider so we can build debugger

This commit is contained in:
Ryan Fleury
2025-05-10 14:28:14 -07:00
parent b52e3be5ae
commit 3fd1f9d255
10 changed files with 86 additions and 15 deletions
+2
View File
@@ -5,6 +5,8 @@
#if FP_BACKEND == FP_BACKEND_DWRITE
# include "dwrite/font_provider_dwrite.c"
#elif FP_BACKEND == FP_BACKEND_FREETYPE
# include "freetype/font_provider_freetype.c"
#else
# error Font provider backend not specified.
#endif
@@ -1,2 +1,44 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
////////////////////////////////
//~ rjf: Backend Implementations
fp_hook void
fp_init(void)
{
}
fp_hook FP_Handle
fp_font_open(String8 path)
{
FP_Handle f = {0};
return f;
}
fp_hook FP_Handle
fp_font_open_from_static_data_string(String8 *data_ptr)
{
FP_Handle f = {0};
return f;
}
fp_hook void
fp_font_close(FP_Handle handle)
{
}
fp_hook FP_Metrics
fp_metrics_from_font(FP_Handle font)
{
FP_Metrics m = {0};
return m;
}
fp_hook NO_ASAN FP_RasterResult
fp_raster(Arena *arena, FP_Handle font, F32 size, FP_RasterFlags flags, String8 string)
{
FP_RasterResult r = {0};
return r;
}