Files
breeze/tests/metrics_link_test.c
waozi ef0de86e02
Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
Integrate Breeze desktop, Android, and app updates
Use the verified dependency lock across native hosts and bundled apps. Preserve saved styles, local app reactivation, and offline packages while integrating the latest practice, Habits, Lumi, and figure preview updates.
2026-11-20 02:24:34 -03:00

24 lines
470 B
C

#include "metrics_link_behavior.h"
#include "zir_string.h"
#include <assert.h>
#include <string.h>
int32_t MeasureGlyphWidth(String value, int32_t font, String typeface)
{
assert(typeface.length == 2 && memcmp(typeface.data, "ui", 2) == 0);
return (int32_t)(value.length * (size_t)font / 2);
}
int32_t MeasureGlyphLineHeight(int32_t font, String typeface)
{
(void)typeface;
return font;
}
int main(void)
{
assert(Answer() == 42);
return 0;
}