Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
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.
24 lines
470 B
C
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;
|
|
}
|