Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8778725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:35:59+00:00 2026-06-13T19:35:59+00:00

I have successfully ported some Python code to App Engine that uses PIL’s ImageFont

  • 0

I have successfully ported some Python code to App Engine that uses PIL’s ImageFont and ImageDraw to generate a dynamic image. The only remaining problem is that the original code loads a TrueType font using a call like this:

titlefont = ImageFont.truetype("Verdana Bold.ttf", titlefontsize)

I can’t just upload the font file and access it directly in GAE (at least I don’t think I can?!). I guess it might be possible somehow to dump font data in a datastore blob, load that and feed it into PIL, but this seems less than elegant, and quite wasteful if everybody who uses PIL for image generation does the same thing. Currently I’m stuck with ImageFont.load_default() though, which gives pretty horrendous looking results.

Is there some clever way of working with alternative fonts in GAE PIL? Some additional API I’m missing that will return usable font objects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:36:00+00:00Added an answer on June 13, 2026 at 7:36 pm

    Any file in your applications directory will be uploaded along with your application when you deploy it.

    So yes, you should be able to “just” access any file you need by keeping it in or under your application directory, moving it there if necessary.

    If you want to serve those files, that’s something different. https://developers.google.com/appengine/docs/python/gettingstarted/staticfiles

    But try including your .ttf file where your app can locate it and it should just work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPhone application I've been using for some time that uses ASIHTTPRequest
I have successfully created a feature in sharepoint that modifies the existing edit dialog
I have a php script that gets user input (some text and a link),
I have a web app that I run locally in tomcat and which I
I have a header file that has some static variables for all of my
Have successfully gotten the csrf middleware working in express as per previous SO questions.
I have successfully bound a control to a property on my page. The property
I have successfully implemented a mysql server as a JDBCRealm for authentication in Tomcat
We have successfully implemented Apache Solr to return the x most relevant dialogs as
I have successfully been using the eclipse Indigo internal browser to view my web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.