Skip to content

Runtime Error "ffi_prep_cif_var failed" when using "FontSize" under MacOS #8

@nlekuona

Description

@nlekuona

Using Spire.Doc.Free or Spire.Doc trial on a MacOS machine, when running the sample code on your website I hit the following error every time FontSize is invoked:

ffi_prep_cif_var failed

It happens when trying to assign a Font Size to either a footnote with:

text.CharacterFormat.FontSize = 8 (sample value, no number is accepted)

or when trying to assign Font Size to a footnote marker with:

footnote.MarkerCharacterFormat.FontSize = 10 (sample value, no number is accepted)

If entering any incorrect value other than float, the condition is detected and rejected; but when a float is provided, as it should, the error above shows.

Result is that it is not possible to assign a Font Size to any element.

Versions

  • Python 3.14
  • MacOS 15.7
  • Spire.Doc.Free 12.12.0
    or
  • Spire.Doc trial 13.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions