Skip to content

Commit 8a34d35

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
feat: add font list command, fix cligen for complex constructors
- font list: uses ASystemFontIterator to enumerate system fonts. Works from headless CLI (verified on Pixel 8a: lists Roboto etc.) - font match: AFontMatcher_match crashes in libminikin (null FontCollection) — this is a minikin-internal issue, not our code. ASystemFontIterator works fine from the same process. - cligen: skip params with unsupported types instead of generating invalid flag code. Treat constructors with non-CLI params as "requires external context". - Added system_fonts.h to font manifest for ASystemFontIterator. - Added check-no-capi CI step.
1 parent 6c43ba3 commit 8a34d35

30 files changed

Lines changed: 3709 additions & 8 deletions

capi/font/cgo_helpers.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

capi/font/cgo_helpers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "android/font.h"
44
#include "android/font_matcher.h"
5+
#include "android/system_fonts.h"
56
#include <stdlib.h>
67
#pragma once
78

capi/font/font.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

capi/font/types.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

capi/manifests/font.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ GENERATOR:
22
PackageName: font
33
PackageDescription: "Raw CGo bindings for Android Font"
44
PackageLicense: "Apache-2.0"
5-
Includes: ["android/font.h", "android/font_matcher.h"]
5+
Includes: ["android/font.h", "android/font_matcher.h", "android/system_fonts.h"]
66
FlagGroups:
77
- {name: LDFLAGS, flags: [-landroid]}

cmd/ndkcli/audio_gen.go

Lines changed: 218 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)