Finding Font and Fontsize which fits in a Rectangle

I'm making a custom game which is made of several Rectangles of different size. All rectangles contains a String i.e "Blaster", "Monster Blue" and so on. I have made a zoom-function which zooms in on a special area the user selcts. All the Rectangles inside this zoom-panel is then resized to their double size.
I want to resize the Strings inside the Rectangles as well. Of course I can make a if-then using FontMetrics og stringWidth("String") and so on. But this approach seems a bit akward and unelegant.
Is there any other way, or must I go the heavy way of FontMetrics? Some tips for the right path will be appriciated.

Found the solution now. I disovered that FontSize 14 is excactly half of FontSize 28 for regular fonts at least.
So I can just double the Fontsize when zooming.
Can't believe I spend the whole afternoon on this!!
This was too easy, but you know certain problems just illudes you.... ;-)

Similar Messages

  • How do I find out and manage which devices I installed Adobe Creative Suite on?

    I need to activate Adobe Creative Suite on a second computer, but a window comes up saying that I already have installed Creative Suite on a maximumo of 2 computers. I know that I can only download on 2 computers, but I have no idea where I downloaded it the second time. I need to find that device and deactivate it so that I can use my real 2nd computer.
    So, how do I find out and manage which devices I installed Adobe Creative Suite on?
    And if I deactivate it, can I activate my 2nd computer?

    Yes the End User License Agreement is the same for the Student and Teacher edition.  You can find more details at http://www.adobe.com/products/eulas/#desktop.

  • How to find font in Indesign, which is in Windows Font Folder?

    Hi
    I need to use Monotype Sorts font.
    This font was not in the Indesign list of fonts.
    I bought the font and downloaded it to a file on my hard drive.
    It is called Monotype_sorts.ttf
    I then went to Windows Font Folder in Cpanel and installed it.
    I then followed advice I found on the web and copied the font to the Adobe/Indesign CS5/ Fonts folder.
    However I still can't see the font within Indesign in order to use it.
    Any help would be very much appreciated as I need to try and work this out very quickly.
    I'm on Windows Vista.
    Many thanks liz

    function(){return A.apply(null,[this].concat($A(arguments)))}
    ... I then went to Windows Font Folder in Cpanel and installed it.
    I then followed advice I found on the web and copied the font to the Adobe/Indesign CS5/ Fonts folder.
    That was some bad advice you got there. Indesign is fully able to use all of your installed fonts -- the ones in Windows. Only a very few specialized types of fonts that cannot be installed in Windows need to go into ID's "private" Fonts folder. (And another reason would be you want to keep your Windows system 'clean'.)
    The problem may very well be that InDesign now sees two versions of the same font, and refuses to let you select either, just to make things not too complicated. So delete the font in one of your locations.
    If that doesn't work either, read this thread on how to reset InDesign's internal font database:
    http://forums.adobe.com/thread/424137?decorator=print&displayFullThread=true

  • Changing Logos, fonts, and colours- Which CSS elements need to be modified?

    All,
    When customizing the BPM workspace, I read the guide, but it doesn't provide a great deal of detail on what specific elements in the bpmworkspace.css file need to be altered. Does anyone have a "cheat sheet" with this information or can you point me to where I could find it?
    TIA,
    IGS

    Maybe this link could help you:
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/workspace_customization/index.html
    There is a CSS reference guide that can help you. I am using this reference.
    regards
    Arruda

  • Has anyone experienced text going missing after using Change All in the Find Font dialogue box?

    I manage an artwork production studio and two members of staff have separately reported that when using the Change All command to substitute fonts in InDesign's Find Font dialogue box, some text disappears from their documents. All affected text is originally set in the same font, and most of the conversion is fine but a few instances of text are actually removed (not reflowed). In the latest reported case, only four or five instances of text were 'deleted' across two pages of a 20pp document.
    I've found a link that refers to the same issue but it's unresolved (http://www.listsearch.com/InDesign/Thread/index.lasso?20041#last)
    I haven't been able to replicate this behaviour but would be interested to know if anyone else has experienced it and if so, under what circumstances it can occur, and what work-rounds or fixes are available.
    Applies to InDesign CS3 and CS4, have not tested with CS5 because we haven't upgraded yet.

    Joel, I am having the same problem you described. I have read of similar posts on PrintPlanet.com. Someone there thought it was a different text engine or something in CS4 which may be causing the problem.
    I don't know what causes this but I believe it can be traced to a previously created file in CS3 is saved as a CS4 document.
    The fonts associated with this problem for me are always Gill Sans, Palatino and some form of Helvetica. There may be others but these are the ones we notice the most.
    Today I worked on an InDesign CS4 file. When I opened it I was given a missing font warning. I went to Find Font and it was different typefaces of Gill Sans that was missing. When I changed the missing font to Gill Sans Regular entire lines of text disappeared. I closed the document without saving it and reopened it. I did the same thing in replacing fonts. This time no text disappeared. Not reflowed; not white; not hidden—gone.
    This is what I have been seeing for the past few months. The disappearing text is random and cannot be duplicated, though fonts may disappear in some other place. You never know where text will just disappear.
    The workaround I have found is to export your file to an INX document and reopen it in CS3. You have to replace all missing text before saving it as INX, though. To my knowledge CS3 has never had this happen.
    The workaround, though it works for me, is annoying. I'd like to know what to do to resolve this issue. What's the use in having CS4 if you can't trust it completely.
    I use a Mac running 10.6.3. I also have running Suitcase Fusion 2.

  • CS3 Find Font/Delete Paragraph Style/Redefine Paragraph Style Causes Crash

    I am running into a very frustrating issue where I cannot replace a paragraph style. The issue is that we used to use some adobe type fonts and want to move to the true type equivalent so that we don't have problems working on files between mac and pc. The problem occurs on both mac and pc on a variety of hardware (both c86 and ppc macs for example). When we open the document it identifies that the font cannot be found (example Palatino T1). When we click find font and select the regular ttf Palatino replacement and click Change All Indesign just vanishes and leaves a crash message with a ton of garbage and a read only memory error. The same happens if we change the font on some text and right click on aragraph style and click "redefine style" - there is a sudden crash.
    Trying to work around this I went into our templates and tried to change it there. Opening the paragraph style and selecting the new font caused it to crash upon selecting OK. Also trying to Make a new paragraph style works, but then when deleting the old one causes a crash no matter what combination of mapping or not mapping the old paragraph style we chose (we tried every option under the dialogue and selected several different styles to map to or none at all).
    This occurs on several different fonts and on several different templates. I have tried deleting the adobe font cache to no avail. Any help resolving this would be great - all our employees are going nuts over this problem.
    Thanks in advance for any help or suggestions!

    Peter, your latest post led me to an interesting revelation. When I change Palatino (t1) bold to Palatino Bold using Find/Change it is fine. When I change Palatino (t1) to any font using Find/Change there is a curious result! As soon as I click find first the page changes to the default template and all content is hidden. The 4 or 5 places where palatino occurs on the default template change fine, but then on the next click of FIND FIRST it crashes! So the problem is connected to "find first", not the actual change. My guess is this is an issue of with how the find/change jumps from the template to the individual page, but I'm not sure exactly what is happening.

  • Illustrator not recognizing some fonts and colors.

    My recently installed Illustrator is not recognizing certain fonts and colors which is producing problems in my designs.
    1. When I drag in a PDF to edit, the letters will appear as gibberish (random numbers, letters and signs) (the font was "arquitectura" which is installed on my OS X I Mac)
    2. When I try to change the color of a font using the eyedropper tool, it shows the proper color in the color box, but the font remains black.
    After googling it, these problems seem frequent back in 2009 but not so much today.  Im thinking it has something to do with this, which prompts when I open the application:
    "Your application install seems to be damaged, Please reinstall the application."

    sugarfactory,
    "Your application install seems to be damaged, Please reinstall the application."
    Obviously, you should. It is best to run the Cleaner Tool between uninstalling and reinstalling.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • InDesign "Find Font" deletes text - help!

    So I open a file, use 'find font' to find and replace a font. Sometimes when I hit "change all" it deletes entire paragraphs of text. I've tried it with different fonts and it's not consistent. Sometime it deletes, sometimes it doesn't.
    Just now, I did a "change font" from Garamond to Univers and lost a paragraph on page one - no text in the box whatsoever. So I did and Undo. Then, I did the exact same "change font" again. Paragraph on first page is fine, one on page 2 goes missing. Any help would be appreciated.
    Thanks.

    Sorry it took me some time to get back...
    #1  original file with the original fonts
    #2 I have done a "Find Font" and replaced with Univers. Notice much of the text on page one is missing... it just seems to disappear (delete). In this case, some text in the same box was left, I think because it was a different font that the rest in the original font.
    Sometimes it deletes everything in the text box, not just a portion.
    Also, I originally suspected my Univers font to be the issue, however, that's not the case. This happens with several different fonts, inconsistently.

  • I bought and installed many fonts for a project and one font in particular which is showing up in the font list on a new file, is missing when I open an existing file containing that font. I can't understand why that's happening and the font is Centrale S

    Hi
    I am encountering a missing font error on Adobe Illustrator for a font that I recently bought - Centrale Sans Bold. This font is clearly installed in the system's font folder and is also showing in the font list on Adobe Illustrator. But when I open an existing file containing this font it is giving the error "The document uses fonts or characters which are not available or are in a different format than originally specified".
    We have also bought Centrale Sans regular from a different website as we couldn't find both on one, could that be clashing somehow?
    Also the existing file was created on MAC plattform and we are using a windows plattform to open it. That to me doesn't seem like an issue as all other files are opening up fine and I have bought around 47 fonts and only this font seems to be not working. I have also written to the website I bought it from but I have also bought around 20-25 fonts from them and all the other fonts are working fine too. Maybe its an illustrator related problem?
    Please help!!!!!!

    There is one way its getting fixed. Once I update my Adobe Illustrator CC to Adobe Illustrator CC 2014 it is further allowing me to go into the system folder and allocate the font to the file so that it can replace it. My only concern now is that our MAC partners who will receive these files back from us have Adobe CS6. We will down save it to CS6 but I hope they won't experience any font issues because of us using CC 2014? Any light you can shed on this?

  • I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

  • HT2509 Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the Mac Air? I need to be able to use a pop up window of fonts.

    Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the MacBook  Air? I need to be able to use a pop up window of fonts.

    Unless you've done anything to change it, Google keeps every email that ever passes through their server in your All Mail folder/mailbox/label. Even if you delete stuff, they hold onto it, there. You have to go out of your way to actually delete anything permanently.

  • Distiller "can't find font" error with MS-Gothic and ArialUnicodeMS

    Hi. I'm tried to verify that Distiller (both 9 and XI) and PDF Generator (11.0 SP1) are able to generate PDFs from Postscript files using a variety of fonts. Almost every font that I tried works perfectly fine, but MS-Gothic and ArialUnicodeMS both fail with "can't find font" errors. I've verified font configurations in both Distiller and PDF Generator, and lots of other fonts work fine. I've also verified that the two fonts are installed, enabled, and can be used in other applications (e.g., MS Word). In fact, I can generate PDFs from MS Word documents on the same server that use both of those fonts. I suspect the errors are misleading in that those apps can find the fonts, but are unable to open or use them for some reason. I've been able to replicate this behavior both on Windows Server and Mac OS X.
    Has anyone seen behavior like this? Any suggestions on how to get more information out of these Adobe apps to get a better idea what the real error is?
    JJR

    Addirional note: This is a java class within a JavaFX application if that is relevant.
    It does seem to be relevant - if I create the same class as part of a Java application rether than a JavaFX application it compiles without error. Is the imported java.awt.GraphicsEnvironment different in the tow cases??
    Edited by: Sidereal on Aug 28, 2009 11:19 AM

  • I have bought an ipad, and when i go to reset it, it needs the restrictions password which i dont know. When i plug it into itunes, it asks to turn find my iphone off, which needs the password of the old owners itunes.What should i do?

    I have bought an ipad, and when i go to reset it, it needs the restrictions password which i dont know. When i plug it into itunes, it asks to turn find my iphone off, which needs the password of the old owners itunes.What should i do?

    If you're able to contact the person who set the lock, send them this link and tell them to follow its instructions.
    If not, you can't use the device but may be able to get it refunded. Apple won't remove the lock for anyone other than the original owner(assuming they're alive.)
    (119278)

  • I want to reinstall our Adobe Acrobat XI Pro because we have begun to get error messages. I followed the initial instructions but when I logged in I couldn't find "My Orders" page which is required to locate my order and install.  Any ideas?

    I want to reinstall our Adobe Acrobat XI Pro because we have begun to get error messages. I followed the initial instructions but when I logged in I couldn't find "My Orders" page which is required to locate my order and install.  Any ideas?

    Barbara,
    If you are looking for your  serial number, sign in to your Adobe account. On the Manage Accounts page that appears, all of your registered products and their serial numbers are listed in the Plans & Products section. For more information on locating serial numbers,please see Find a serial number
    Here is the link to download and install the software:
    Acrobat XI, X
    Pattie

  • Table name to find customer and which sales area he belongs to?

    Table name to find customer and which sales area he belongs to?

    Hi suchita,
    You can find these information Sales area he belongs and all in the table of  KNVV , take the customer number from customer master  KNA1-KUNNR  put it in KNVV-KUNNR. you can find all the  sales details.
    if you need more info send breaf requirement.
    if helpful award the points
    Regards
    Ram

Maybe you are looking for