git normalize all files

This commit is contained in:
Ryan Fleury
2024-07-26 11:13:47 -07:00
parent c13833f74f
commit b18e437337
162 changed files with 54806 additions and 54806 deletions
File diff suppressed because it is too large Load Diff
+18 -18
View File
@@ -1,18 +1,18 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
////////////////////////////////
//~ rjf: Basic Type Functions
internal FP_Handle
fp_handle_zero(void)
{
FP_Handle result = {0};
return result;
}
internal B32
fp_handle_match(FP_Handle a, FP_Handle b)
{
return (a.u64[0] == b.u64[0] && a.u64[1] == b.u64[1]);
}
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
////////////////////////////////
//~ rjf: Basic Type Functions
internal FP_Handle
fp_handle_zero(void)
{
FP_Handle result = {0};
return result;
}
internal B32
fp_handle_match(FP_Handle a, FP_Handle b)
{
return (a.u64[0] == b.u64[0] && a.u64[1] == b.u64[1]);
}
+59 -59
View File
@@ -1,59 +1,59 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#ifndef FONT_PROVIDER_H
#define FONT_PROVIDER_H
#define fp_hook C_LINKAGE
////////////////////////////////
//~ rjf: Types
typedef U32 FP_RasterFlags;
enum
{
FP_RasterFlag_Smooth = (1<<0),
FP_RasterFlag_Hinted = (1<<1),
};
typedef struct FP_Handle FP_Handle;
struct FP_Handle
{
U64 u64[2];
};
typedef struct FP_Metrics FP_Metrics;
struct FP_Metrics
{
F32 design_units_per_em;
F32 ascent;
F32 descent;
F32 line_gap;
F32 capital_height;
};
typedef struct FP_RasterResult FP_RasterResult;
struct FP_RasterResult
{
Vec2S16 atlas_dim;
void *atlas;
F32 advance;
};
////////////////////////////////
//~ rjf: Basic Type Functions
internal FP_Handle fp_handle_zero(void);
internal B32 fp_handle_match(FP_Handle a, FP_Handle b);
////////////////////////////////
//~ rjf: Backend Hooks
fp_hook void fp_init(void);
fp_hook FP_Handle fp_font_open(String8 path);
fp_hook FP_Handle fp_font_open_from_static_data_string(String8 *data_ptr);
fp_hook void fp_font_close(FP_Handle handle);
fp_hook FP_Metrics fp_metrics_from_font(FP_Handle font);
fp_hook NO_ASAN FP_RasterResult fp_raster(Arena *arena, FP_Handle font, F32 size, FP_RasterFlags flags, String8 string);
#endif // FONT_PROVIDER_H
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#ifndef FONT_PROVIDER_H
#define FONT_PROVIDER_H
#define fp_hook C_LINKAGE
////////////////////////////////
//~ rjf: Types
typedef U32 FP_RasterFlags;
enum
{
FP_RasterFlag_Smooth = (1<<0),
FP_RasterFlag_Hinted = (1<<1),
};
typedef struct FP_Handle FP_Handle;
struct FP_Handle
{
U64 u64[2];
};
typedef struct FP_Metrics FP_Metrics;
struct FP_Metrics
{
F32 design_units_per_em;
F32 ascent;
F32 descent;
F32 line_gap;
F32 capital_height;
};
typedef struct FP_RasterResult FP_RasterResult;
struct FP_RasterResult
{
Vec2S16 atlas_dim;
void *atlas;
F32 advance;
};
////////////////////////////////
//~ rjf: Basic Type Functions
internal FP_Handle fp_handle_zero(void);
internal B32 fp_handle_match(FP_Handle a, FP_Handle b);
////////////////////////////////
//~ rjf: Backend Hooks
fp_hook void fp_init(void);
fp_hook FP_Handle fp_font_open(String8 path);
fp_hook FP_Handle fp_font_open_from_static_data_string(String8 *data_ptr);
fp_hook void fp_font_close(FP_Handle handle);
fp_hook FP_Metrics fp_metrics_from_font(FP_Handle font);
fp_hook NO_ASAN FP_RasterResult fp_raster(Arena *arena, FP_Handle font, F32 size, FP_RasterFlags flags, String8 string);
#endif // FONT_PROVIDER_H
+10 -10
View File
@@ -1,10 +1,10 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#include "font_provider.c"
#if FP_BACKEND == FP_BACKEND_DWRITE
# include "dwrite/font_provider_dwrite.c"
#else
# error Font provider backend not specified.
#endif
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#include "font_provider.c"
#if FP_BACKEND == FP_BACKEND_DWRITE
# include "dwrite/font_provider_dwrite.c"
#else
# error Font provider backend not specified.
#endif