English 中文(简体)
Cannot apply some font as custom font on xcode 4.2 for develop iOS 5 application
原标题:

Since I installed Xcode 4.2 in order to test iOS 5. I got the following warning after compile the project.

"Using the font Arial - Black in version of Xcode prior to 4.2 may have unexpected results."

And also I could not change the font because it will be crashed when I press the font menu.

Any suggestion?

Thanks.

问题回答

In IB, click on the File Inspector (first icon in the Utility View) and under "Document Version" change the Development value to 4.2 (or greater).

I had same problem, but I changed the Font of the control from interface builder to "system". Then I programmatically set the font, I wanted to display, using setFont method. Its working fine for me. I hope it should work for you too.

I had the same problem, but with MyriadPro-Bold. In Interface Builder, I selected the font and chose "System" like iHS said, and then the font was back to the way it looked in previous versions of XCode

Add the .otf file. Then the font will show.





相关问题
Java (AWT): fitting text in a box

I have an application that extends a Frame. Then, it ll display a few lines of text using: Font f = new Font("Arial", Font.PLAIN, 10); g.setFont(f); g.drawString("Test|great Yes ^.", x, y + 10); Now ...

Embed font into PDF file by using iText

I defined a tag map, and got a XML data file. I want to convert the XML data file to PDF by using iText. The question is how to embed fonts (e.g. Polish font, Chinese font) into the target PDF when ...

Font Rendering between Mozilla and webkit

I m not sure if this has anything to do with the recent Safari update, but I m beginning to notice this a lot. There is a drastic difference in the way each browser is rendering fonts. for instance, ...

Embedding Fonts in AS3 - Dynamic Text Field disappears

This is hopefully a new problem or just me missing something obvious. Please help! I m embedding a font into my AS3 application. I m doing everything by-the-book and it half-works. In my main class, ...

Dynamic GD image width text

I m trying to spice up my website by using custom fonts for headings. For me, the most appropriate way to do this is using PHP and GD. I have written a little script which will output the dynamic text ...

How do I combine @font-face and @media declarations?

I d like to build a common typography stylesheet with a very small number of selectors. As such, I d far prefer to use @media sections for the various versions rather than create different files, each ...

热门标签