In the drop-down for font sizes in TinyMCE it looks like this.
Notice that it is using the unit px in the header when the rest all say pt. Any way of fixing it so instead of px it reads pt?
Also, why is it so wide?
Update: I tried overriding the font size list, which worked, but didn't help with the label being "px" or the width.
Thanks,
doug
It turns out the site default font size, from the site's CSS, was 11pt. I added 11pt, the to the font size toolbar which clarified the UI. It now shows up instead of 14px in the toolbar, and selecting text and clicking on the toolbar shows 11 pt selected.
Related
I am using tiny mce 3.5.8 .i already set default font size is 14px in the tiny mce editor using ed.execCommand("fontSize", true,"14px");.But on the time of rendering font size 12px text shows.
The command you are using is telling the Font Size select list to set itself to the 14px selection but that won't impact the HTML that is already loaded into the editor.
If you want the content in the editor to default to using 14px you should pass a CSS file into TinyMCE (see the content_css init setting) and set the default font size to 14px in that CSS file.
If you load content and then manually use the font size select to set the size you will see that TinyMCE wraps the selection in a span and applies an inline style. You could certainly also do that as you load the content into TinyMCE but then you have a hard-coded font size.
I would think the CSS approach will do what you want while making it easier to change your default font size later if you need to do so.
I have one TextArea in GWT, TextArea inside Scrollable panel is filled with content which comes from API. Sometime the content can be less or more. I want to make my Textarea to shirnk if content is less, so how do I count the total number of lines of text inside text area?
TextArea is with fixed height applied through CSS.
The number of lines will be different depending on the system font, font size selected by a user (it will override the font size you set in CSS), and the browser. Besides, you are talking about a TextArea, so a user can type or paste more text.
The standard design approach is to keep the TextArea size constant.
If you do want to adjust it, the solution is to create a hidden element. See the details:
http://blog.gaijindesign.com/jquery-scrolltop-to-a-hidden-element/
Can any one tell me what is the major difference between UIWebView's font size property and UITextView's FontSize property??
Both are different, As UIWebView's Fontsize is very bigger then UITextView's font size, through both are 15..
Please tell me, What is the difference?
Thanks in advance..
Following is working properly.
<html><body style="margin-top:0px; margin-left:0px"><marquee behavior="alternate" style="font-family:verdana;font-size:10px; color:red;">Test</marquee></font></body></html>
although both are rendering HTML but main difference is,
UIWebView giving u the HTML view its font size denpend ViewPort,
where as the UITextView can control its font size.
According to the official Objective C website:
"This class does not support multiple styles for text. The font, color, and text alignment attributes you specify always apply to the entire contents of the text view. To display more complex styling in your application, you need to use a UIWebView object and render your content using HTML."
How I understood it: on a UIVewView you can use as text HTML tags, in UITextView it will be displayed as a plain text. The UIWebView's font's size depends from the ViewPort, and you have no direct access to it, as well as the UITextView has properties for the font size setup.
I have a few UITextFields and I would like the user to be able to change the font's appearance within those fields.
Right now I have a UIToolbar with 5 buttons used for font controls. One for font name, one for size, one for color and one for alignment.
To change font, I display a picker with the fonts family names, letting the user pick default font for that family.
For the font color, I display another toolbar with a font size slider
For font color, I display an open source color picker
For font alignment, I display a button that cycles through the left/center/right alignment.
Finally there's a close button that hides the toolbar.
Currently all of my code is in one controller, but I would like to have it refactored into a separate, reusable class.
Since I'll be rewriting code, are there any open source font controls like I'm describing above? Maybe I can just plug in something that's already made into my project?
Thank you!
It wouldn't be very hard at all. Instead of pickers use a scroll view with buttons and labels above them using the font. As for size you could do the same!
This would be easy in Xcode 4, not so sure in 3.X.X
I found that the attributed string example by apple does have a table view-like font controller that includes a preview of what fonts look like. I think extending that controller may be the easiest thing to do:
http://developer.apple.com/library/ios/#samplecode/CoreTextPageViewer/Introduction/Intro.html
I'm using a barcode font (IDAutomationMC39H) in an SSRS 2005 report I'm developing, and while it renders fine in the preview in BIDS, if I export the results to PDF, print the results, or do any of the above (including preview) in Report Manager, the barcode font is extending off the top of the textbox. The barcode itself is nearly 20px tall, even at only a 12pt size. I've tried changing the CanGrow value for the textbox, but it seems that even with that set off the barcode isn't pushing the bottom edge of the textbox downwards, it's simply extending over the top of the box. I've also tried resizing the textbox to allow it to contain the entire height of the font, but even with the VerticalAlign set to Bottom the barcode still sticks to the top of the textbox and overflows out the top.
See screenshot here:
http://imgur.com/JDC4Z.png
Does anyone know how to force the font to be bound by the top of the box, instead of overlapping it?
I tried with no real success to get font-based barcoding to work. Ended up getting the boss to pay for NeoDynamic BarCode Professional which works great and has a lot more flexibility than fonts.