How do i install specific fonts on my instances

0 votes

I have a Python application running on an AWS EC2 instance that requires certain specific fonts to produce output and wonder how to install them as part of the deployment or instance launching process.

My code, running on my local machine (OS X) uses

'Arial Unicode MS' 'Open Sans'

as fonts. But these fonts are not present by default on EC2 and it is not clear to me either what packages might include the fonts I need, or how to install them.

How do I install those two fonts on EC2? By using yum or a command or container_commandas part of the deployment process specified on an .ebextensions/*.config file?

Aug 28, 2018 in AWS by datageek
• 2,530 points
2,987 views

1 answer to this question.

0 votes

Create a fonts/ folder in your application and fill it with the font(s) you want. Create a .ebextensions/copy_fonts.config file that looks like:

container_commands: copy_fonts: command: "cp fonts/*.ttf /usr/share/fonts/"

answered Aug 28, 2018 by Archana
• 4,170 points

Related Questions In AWS

+1 vote
4 answers

How do I cache my images which are stored in Amazon S3?

when caching ec2 instance these can be ...READ MORE

answered Oct 23, 2018 in AWS by Nabarupa
8,489 views
+1 vote
2 answers

How do I get my AWS Glue client in JAVA?

Hey, you've been using a correct code ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,670 points
4,461 views
+1 vote
2 answers

How do I run python script on aws EC2 instance(ubuntu)?

I believe that you are using the ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,670 points
9,946 views
0 votes
1 answer

How can I do Continuous data ingestion from on prem data sources to redshift

I can Recommend looking into AWS Schema ...READ MORE

answered Aug 8, 2018 in AWS by Priyaj
• 58,090 points
1,568 views
0 votes
1 answer

How can I install curl 7.34 or later on Amazon linux old instance

got answer from this link https://www.digitalocean.com/community/questions/how-to-upgrade-curl-in-centos6 worked for ...READ MORE

answered Aug 9, 2018 in AWS by Priyaj
• 58,090 points
7,082 views
0 votes
1 answer

How do I enable SSH for my AWS-EB instance?

Using the EB CLI to do eb ...READ MORE

answered Oct 9, 2018 in AWS by Archana
• 4,170 points
2,736 views
0 votes
1 answer

How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

This can be done using the following ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,640 points
2,949 views
0 votes
1 answer

How to install Python on my ec2 instance?

EC2 on linux machine currently supports python3.4 ...READ MORE

answered Mar 27, 2019 in AWS by Ritesh
3,627 views
0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,170 points

edited Jun 16, 2023 by Khan Sarfaraz 1,019 views
0 votes
1 answer

How do i manage firewall settings for my instance in Lightsail?

Yes. You can control the data traffic ...READ MORE

answered Sep 12, 2018 in AWS by Archana
• 4,170 points
1,369 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP