I'm working on an iPad app that does a simple display of text similar to iBooks.
I would like to display ONLY full paragraphs on each screen (ie, no orphan/widows on a page). Similar to iBooks, I want to allow the user to change the font and font size and continue to keep all lines in paragraphs together. The user will be able to page forward and backwards (just like iBooks).
I've been researching this and can't find a solution for this. I would think that someone has already done this code, but it looks like I'm going to have to figure out the point size of the font and calculate the size of the TextView and then count how many characters, etc etc etc.
Does anyone have a suggestion where I might start to do this?
Thanks a bunch!
Look at the NSString UIKit Addition it has methods for calculating how much space the rendering of string in a give font will take.
Related
I am trying to match the "teletext holidays" in the image below (with the white bits connecting all the letters:
I have achieved the following by going to the layers section, right-clicking the text layer, and select “Blending Options.” Then marking the checkbox next to “Stroke.”
Any hints or tips to point me in the correct direction would be appreciated. I appreciate moving the letters within the font closer together will help so will work on that now.
Any help appreciated.
Update:
Made the letters appear closer together. However, using stroke is making the black letters "shrink" in size so think a different solution is required. Thoughts?
With regard to that final image and the black letters appearing smaller. When applying the stroke, tick to indicate that it should be outside and not center or inside
And with helping to ensure that the white parts do meet.... Hmm... Well. Difficult to do the horiztonal stroke without it also applying vertically.
I would agree with others that Illustrator would be better but in Photoshop I might try to duplicate the text, make it all white, put it on the layer behind your main text and manually create a horizontal white pattern.
^ I really hope somebody has a better idea for that last bit though.
Alan,
I would like to help you with this issue. First of all your reference design is designed in adobe illustrator not in photoshop because there is some limitation in photoshop for the stroke feature.
So I would like to suggest you design it in adobe illustrator and not waste your valuable time in photoshop for your desired output.
If you need more help regarding it feel free to contact me at niravmistrydata#gmail.com.
Thank you,
Nirav Mistry
I'm posting this question because I'm in front of some kind of wall there..
I need to be able to condense the text of a label to make it fit but without touching at the font size. Basically, just squeeze the text.
Here an image that should be clearer to understand :
Normal/Condensed Font
I've searched a bit but it's pretty uncommon actually.
I doubt it's possible without modifying the font itself but if anyone has an idea, that would be awesome.
N-B: I'm using VS2015.
I am working on a big demo app in iOS. Now we changing UI for iOS7. i want to reflect font and colour change throughout the app. I want to do it in minimal rework. now i have 15-16 type of font and colour combination which i need to reflect throughout the app.
I know i can create IBOutleCollection. But for each combination creating so many outlet collection is not a good idea.
For ex i have almost 30 customize cell in full app with 3 fix labels and 2-3 extra labels in it. And there are almost 7-8 type of font and colour combination for that 3 fix labels.
This is just an example, count could be more. So creating so many outlet collection does not sound good.
I hope i dont sound stupid.Any Suggestions would be appreciated.
Look into UIAppearance
I suspect your answer is there. Enjoy :)
I have searched for quite a while to find the answer.
Unfortunately, there is not even single one answer can be found on the Internet.
I only have one ApplicationBarMenuItem inside the ApplicationBar which is "About". And after I saw the effect of the "opened" ApplicationBar, I think it is too "fat" (the height of the item is too much, or maybe the line spacing/margin-top and margin-bottom/padding-top and padding-bottom etc...I'm trying to create an image for you, because I don't know how to get a screen shot for that, but anyway I'm sure you know what I mean :))
So here again is the question, is it possible to change the height of ApplicationBarMenuItem in Windows Phone 8?
Many thanks.
No, you can't change the AppBar menu item height.
But... i think this is the way the appbar looks in any system application you can take a look at, and the user isn't going to be dissapointed by the size, is just the expected size. Only my two cents, but i don't think you need to worry about that.
What I'm trying to achieve sounds pretty simple: regular simple window with a text field, view ,and a button.
In the field I'm placing the number (32 for example) and after I hit the button my view should be filled with 32 images. Don't really know how to accomplish this since I'm pretty new to Cocoa development.
So far I was just able to hardcode three NSViews and display 3 images at a time...which is not really what I want. So if anyone have any thoughts or hints I would totally appreciate it!
Thank you
You can use IKImageBrowserView. Take a look at ImageBrowser sample code.