Skip to content

Custom fonts don't load in the survey #275

@iledzka

Description

@iledzka

Hello,

I'm having troubles setting custom fonts. I tested it in the example app by passing font names as shown below:

Iterate.init({
      apiKey: apiKey,
      safeArea: useSafeAreaInsets,
      storage: SecureStorage,
      markdown: Markdown,
      buttonFont: {
        filename: "BerninoSans.otf",
          postscriptName: "BerninoSans",
      },
      surveyTextFont: {
          filename: "ClanOT-Medium.ttf",
          postscriptName: "ClanOT-Medium",
        },
    });

I’ve added the font files to the assets/fonts directory. However, when I try to apply them, the survey displays an incorrect serif-style font instead (see demo).

Could you advise on what might be causing this? Any help would be greatly appreciated.

Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-08-26.at.16.08.17.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions