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 9001079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:23:21+00:00 2026-06-16T00:23:21+00:00

I am having a problem, might seem like a wierd question to you, since

  • 0

I am having a problem, might seem like a wierd question to you, since there might not be alot of sense with it.

Anyway, I am displaying a short story on 3 scenes in a storyboard, (Its actually Fresh Prince in Bel Air lyrics, dont ask why. 😉 ) which all have different fonts.

Now I want to make a button, so that when i press it, I want the application to “fetch” the current font used, and display it.

The button and listeners etc. is not a problem, got that covered. But how do i “fetch” the fontname? I do not want to use a variable and just save the name as a string there. I want the program to find the name of it.

Hope this makes any sense. Thank you! / Joakim

  • 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-16T00:23:22+00:00Added an answer on June 16, 2026 at 12:23 am

    If you just do:

     local someText = display.newText("Hello World", 0, 0, "Helvetica", 32)
    

    then I don’t see a way to get to the font that text is using. However if you do:

     local someText = display.newText("Hello World", 0, 0, "Helvetica", 32)
     someText.font = "Helvetica"
    

    That will change the font, in this case to Helvetica, which is what it already is and then you can simply look at that property:

     print(someText.font)
    

    to get the font. That is not set if you do the first method. But at the end of the day, you are setting a variable. In this case, its part of the object instead of a separate table.

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

Sidebar

Related Questions

I think I might be having a stack overflow problem or something similar in
Having problem with the middle Div not expanding to the width http://acs.graphicsmayhem.com/images/middiv.jpg Ok, how
It might seem a little dull and basic, but I'm actually having trouble to
I've been having a heckuva time with this problem, and there seems to be
Okay, the question might seem dumb, but I'm asking it anyways. After struggling for
I realize in many cases, putting None might not seem so bad. However, I
I am having a problem with the following query(if this is a duplicate question
Im having problem in my UIscrollView ,this is what I have done: Whenever a
I am having problem using mvc:resources in spring 3.1 configuration. Initially i was working
I am having problem with previewing custom performance counters with PerflibV2. Performance Monitor shows

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.