I'm working with an NSTextView and one of the requirements I have is that a tab character, '\t', shall have the same width as four spaces.
So the text-content would look like this:
AAAA
AAAA - 1 tab
AAAA - 4 spaces
And this is how I accomplish this:
// done when NSTextView first loaded and when
// delegate's textDidBeginEdit...
I'm trying to visualize a XAML resource file at design time. When I merge the dictionary for the following XAML resource file into a XAML Window I get the error: Could not create an instance of type 'GlyphTypeface'.
The problem line is:
<GlyphTypeface FontUri="C:\WINDOWS\Fonts\TAHOMA.TTF" />
I have verified that the font exist in the...
Hi,
I am creating a website and the font looks different in IE (it's larger) than it is in Firefox and Chrome. Does anyone know why? And how do I fix it in IE?
Here's my code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&...
I'd like to use a non-standard font for my .net 3.0 Winforms application.
This font might be installed on some of my user's computer, but it will clearly be missing on some others.
How can I ship the font with my program ? Do I need to install the font ? If so, is the lack of administrator privileges going to be an issue?
...
Hello,
I am using standard GWT (2.0.1) to make an internet app and i have this wierd issue with huge fonts (edit: well, larger than normal) with the default style in IE 7 & 8, while FF, Chrome and Safari are displaying fonts correctly. At first i thought it must be on error on my side (i use UiBinder with some custom css) but then I not...
Hi there
I am currently developing a little application with a highly-dynamic GUI which needs a lot of refreshing and drawing. To archive this, I am using managed DirectX.
I successfully painted a little string in a specific font to specific coordinates, but I have no idea on how I could rotate the drawn text...
Any ideas?
Thanks!
...
For some reason if I add a string to GraphicsPath using AddString the font is going to be smaller than it looks like in the Font Dialog.
SizeF sz = g.MeasureString(Text, new Font(Font.FontFamily, (int)(Font.Size - (Font.Size / 7)), Font.Style), new PointF(0, 0), StringFormat.GenericDefault);
this.Size = new Size((int)sz.Width, (int...
I use cairo to render a simple text onto a cairo surface. I use a freetype font for that (Vera.ttf if that matters). It works, but sometimes characters disappear from the output. In fact only the numbers. I drew a text 'Demostream 1..' and sometimes the '1' disappears from the output and I have absolutely no idea why. The number is defit...
i've been testing a small Air app on different systems and found out that on one of these systems text does not show up, at all. Other (older) applications are fine, but this one does not display any text.
I've been frantically trying to solve this with text embedding. To no avail.
Could the system be missing a font?
system:
air 1.5.2...
Hi all !
I have this text "my text is <b>bold</b> and regular".
I want "<b>bold</b>" to be... well, let's say... bold !
I have a mask layer under which there is a text field.
The text field shows htmlText, and i must embed chars. If not embedded, it doesn't display because of the mask. So the solution of importing 2 user fonts ( one ...
Can anyone tell me how I can change the font using a font dialog. I'm trying to get it so either the selected text changes or if no text is selected only the font after the marker gets changed (not the whole textbox).
This is what I have so far. Thanx
private void menuFont_Click(object sender, EventArgs e)
{
if (fontDialog...
Hello,
Is it possible to use a font directly from resources in Delphi and how?
I have a problem with the very first steps.Example I cannot include Segoe UI Light font in resources of a project,an exception occurs.And that is only if the file's extension is 'ttf'.
If the written above is not possible then how do I use an external font ...
Hi ,
I have a question regarding flex and embed fonts , i want to have a library of embed fonts that will have about 30 different fonts .
Is there any way i can only load the fonts that i use? ( dynamicaly )
Thanks
...
Hi
Building a multilingual application that should work with the most prevalent global alphabets but confused as to which font sets I should embed.
For instance for Chinese there is Traditional Level 1, Simplified,Traditional (all). and Chinese (all).
For Japanese there is Kani, Kanji, and All.
...
I saw a lot of web pages recently, that have very smooth headlines, like this website for example: http://boagworld.com/
How do they go about to do that? Are there any hidden clues?
At one point I heard from a technique where they used Flash (I think) to embed custom fonts onto a website and then replace normal headlines with this flas...
Hello,
I am starting off with Postscript, and would like to do something very simple: include a LaTeX symbol within my Postscript document. For example:
%!
/FontSize 12 def
newpath
0 0 moveto
("Hello \LaTeX") show % This is where I would like
% the rendering of \LaTeX
% with actual LaTeX fo...
I'm building text balloons to display variable length messages in Flash. My question is pretty simple, though the answer may not be.
I have:
The string I want to display.
The font information.
The width/height ratio I want the text field to have.
How do I calculate the width and height of the text field it needs to display the text ...
Which web-safe fonts are more readable to eyes as a body text? Which web-safe fonts should not be used?
What should be the minimum font size of <p>body text</p> for better readability?
What font size should we use for <H1/2/3/4/5/6>, <p> <ul>, <ol>? Should we use same font-size for <p>, <ul>, <ol> and <th> <td>?
What would be the bala...
Will I have copyright problems with Microsoft if I add the @font-face CSS3 property in my commercial webpage with the font: "Microsoft YaHei Bold" (The Cleartype Chinese font for Windows Vista).?
...
I'm trying to use Linq to loop through all fonts in the %windir%\Fonts folder and find the one that has a property title of "Arial" (or any Font Family name supplied), but I can't seem to access the font properties (things like "Title", "Font style", "Designed for", etc.).
The following is only giving me the basic file info:
Dim f...