Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'FreeTypeFont' object has no attribute 'getsize' #215

Closed
will-moore opened this issue Feb 1, 2024 · 2 comments
Closed

Comments

@will-moore
Copy link
Member

Reported at ome/omero-figure#522

This is the same issue as found on OMERO.figure, where Pillow 10 has removed font.getsize() ome/omero-figure#523

Running Split View Figure script fails with:

Traceback (most recent call last):
  File "./script", line 802, in <module>
    run_script()
  File "./script", line 790, in run_script
    [file_annotation, message] = split_view_figure(conn, script_params)
  File "./script", line 630, in split_view_figure
    fig = make_split_view_figure(
  File "./script", line 389, in make_split_view_figure
    text_height = font.getsize("Textq")[1]
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

cc @juliomateoslangerak

@will-moore
Copy link
Member Author

Ah - this should be fixed at #214

@jburel jburel closed this as completed Feb 23, 2024
RichardJActon added a commit to RichardJActon/omero-server-docker that referenced this issue Mar 13, 2024
There is a bugfix in the lastest version for an issue in the current version that causes the export to fail see: ome/omero-scripts#215
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/omere-figure-export-pdf-does-not-work/39573/32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants