Welcome to MSDN Blogs Sign in | Join | Help

March 2007 - Posts

It was quite a while ago that I first posted Let's get vertical and talked about how prepending a font name with an @ would signal a font with knowledge of verticality to properly decide when to rotate glyphs 90 degrees. I have been asked whether those Read More...
It would seem that the AP is able to make typographical errors, in addition to their more conceptual ones. The Associated Press-inspired problem was ironically enough reported over the AP wire: Newspapers struggle with name accents By LAURA WIDES-MUNOZ Read More...
Hmmm...... Cake text printer doesn't speak Italian, pens errors instead I guess I can't say this one takes the cake. Technically, I can't even say no comment given the fact that the extraneous text is actually a bunch of comments! I feel like Alan Smithee Read More...
Stuart asks: I don't really know who else to ask this question so I'm hoping you know the answer or could find an answer for it. Uniscribe docs are somewhat lacking :( We (Mozilla/Firefox) are using Uniscribe for text rendering now and everything works Read More...
Ravi asks: Hello Michael, I am a regular reader of your blog and I find it very entertaining and informative. My problem is this: Gautami font in XP and Vista is absolute crap for reading Telugu documents on the web. You previously had a post comparing Read More...
Aaron asks: Hello! I've got a question that's been nagging at me for a while now. I work for a dev tools company and design a fair number of public APIs. So I tend to be critical of other companies public APIs and usually wonder "what made them decide Read More...
I have made bad puns in the titles of blog posts talking about Kana previously (e.g. Knock knock! Who's there? Kana! Kana Who? ). Now, in a bold bit of irony, I am going to repeat that experience here and talk about the repeater. Somewhat repeatedly in Read More...
Eli's question was simple enough: Is there a way to tell if a System.Drawing.Font object that I’ve created is fixed width or not? Also, once I know whether or not my font is fixed width, is there a way to tell what the width is? The only approach I could Read More...
(No, this post is not about anything kinky) If you are a regular reader then you know that I have been talking about the Yen ( U+00a5 ) for a long time . Now I fully understand why Microsoft went down the road of having U+005c (REVERSE SOLIDUS) look like Read More...
(This post might win an award for strangest title, unless you deal with OpenType!) The GetCharacterPlacement function in GDI has been around since Windows 95/NT 4.0, and the truth is that the number of people who use it probably outnumber the number of Read More...
Mandi asks: I pray to God you read this email. I cannot find a way to print out a sample of all of vista's font on my new HP computer that came with Vista pre installed. I know for windows xp was hard. If there is some way can you please forward it on Read More...
This is truly the error message of the week.... I could also just stop messing with servers before I try to log into them, but what fun would that be? :-) This post brought to you by 0 ( U+0030 , a.k.a. DIGIT ZERO) Read More...
Torifat asks: Hi Michael, I'm a vb programmer (You can assume me as a neophyte user :)). I want to get the name of those fonts, whose glyphs contain Bengali characters... I've tried some codes [IMLangFontLink::GetFontCodePages and ...] from your blog Read More...
If you use the GetKeyNameText function, you can get the name of a key -- like the name that you might want to put on a soft keyboard (assuming you did not want to change what was on the key when you changed shift states or something -- the static nature Read More...
Yes, it is true that Cathy and Julie both turned 40 this year . But it turns out that in the opinion of more than just a few people , the European Union just turned 50! Now it is the case that some purists like to go all the way back to the Treaty of Read More...
Also over in the microsoft.public.win32.programmer.international newsgroup, Norman Diamond (who is clearly doing a lot of stuff with CE these days!) asked: In Windows Mobile 5 (Windows CE 5), when calling MapVirtualKey with the second parameter set to Read More...
Over in the microsoft.public.win32.programmer.international newsgroup, Norman Diamond asks: http://msdn2.microsoft.com/en-us/library/ms646288.aspx * The WM_UNICHAR message is equivalent to WM_CHAR, but it uses Unicode * Transformation Format (UTF)-32, Read More...
It was just the other day that I got the message via the contact link: Michael, Hi. I'm a Neurologist in Dallas, TX, and a computer person. My Internet Explorer 6 (running on Win98) suddenly started using a strange font where the html page coding was Read More...
It happened some time ago. Right after the Community Server update on the blog, in fact. I was bothered by the way that the links over on the right hand side were displayed in the order they were added, even though in the design interface they were sorted Read More...
So Ben asked me via the contact link: Hey Michael, Great Blog you've got going here. A colleague of mine at work introduced me and I thought i'd ask you a question which has been plaguing me for a while. I want to change the Display Name for my users Read More...
In the spirit of dumb quotes ! A regular reader pointed me this one.... It would seem that Word' AutoCorrect feature strikes again. :-( Take a look at the episode list provided by epguides.com list for the show What About Brian : You might recognize how Read More...
Marvin asked in the Suggestion Box: Looks like GetLocaleInfo(0x46C, LOCALE_SISO639LANGNAME,...) returns "ns" on XP. Which is not a legal ISO-639-1 abbreviation. Should have been "nso" from ISO-639-2. Is it a bug or something by [unimaginable] design? Read More...
A friend of mine got me the new-ish 3-disc collection from the comedian Gallagher. In Melon Crazy, at 6:48 into the show, he points out that we "...park in a driveway and drive in a parkway". Like I said before . :-) Now Melon Crazy dates back to 1984, Read More...
Jeffrey's question earlier today: Hi experts, My customer has a custom designed font with some special characters in the Private Use Area (PUA). He is having a problem when trying to paste these characters (as text) into a RichEdit control in his application. Read More...
A couple of days ago when I wrote about how In Vista, jackdaws appear to be somewhat endangered , I mentioned ...both strings are actually in Message Compiler resources which means they could actually be localized (though note that the above algorithm Read More...
So when I first posted Double Secret ANSI, part 1 (Somewhere between ANSI and Unicode) , I was only a little bit surprised when regular reader Mihai knew where I was heading.... (Mihai works for a company that produces some of those Double Secret ANSI Read More...
You may have seen the first part of this series ( A way better model for features ). Think of this as part 2.... This time I am going to use as a victim example the Microsoft National Language Support Downlevel APIs 1.0 , which I have talked about previously Read More...
So this last week Cathy had her 40th birthday.... Julie had sent a mail explaining in simple terms why it was so important that something be done for this important event: First, we need to celebrate this fine milestone in her life. Second, it’s payback Read More...
Earlier today (in There was an order for letters, iroha was it's name-oh! ) I talked about a specific pangram that has an interesting educational functionality, even in modern times. Maybe for computers too, and maybe not -- the evidence isn't in just Read More...
(Apologies to the farmer's dog Bingo !) So the question I got from a customer the other day was an interesting one: Does Windows support the Iroha ordering Kana? I did not see an option for it. Windows doesn't support it, no. Though maybe I should say Read More...
From time to time it is nice to see how some of the search engines are doing at their job of helping people find what they are looking for. So let's take a typical problem, like people trying to run The Microsoft AppLocale Utility on Vista. You may have Read More...
John's question was simple enough: Anybody know a trick to have the Text properties of WinForm controls have their values stored in resource files rather than <formname>.Designer.cs? When the text string is long, VS automatically puts the value Read More...
Say what you want about MSLU (you might love it, you might hate it, you might have never even looked into it enough to have an opinion), one feature that it had quite overwhelmingly in its favor was that it did its best to make sure that you could write Read More...
In theory, you can create just about any program using any programming language. And in my time I have seen a lot of tasks that many considered to be impossible happen. But that fact alone does not make it always a good reason to try to do such a thing. Read More...
(Nothing technical here) Somebody once suggested to me that time spent in the Department of Motor Vehicles does not get charged against your life expectancy. Well, if that's true then I aged 90 minutes less today than I would have otherwise. (how is that Read More...
uberDave asked: I'm making my first forays into the world of XAML/WPF, and I'm finding it's handling of bidirectional text to be rather confusing. For example, consider this HTML fragment: Blah <span>קֵינוֹ</span> <span>123 ABC</span> Read More...
(Don't these 'Every character has a story' posts remind you of a Colbert-esque Better Know a District series? Maybe I should rename the series to Better Know a Character . What does everyone think?) Just recently, John asked: Just a quick question I can't Read More...
We have to set our goals correctly. The other day. Murray Sargent was asking some knowledgeable people (I'm not including myself in that assessment, as I was not added to the thread until it was several messages deep!): I’m finding that NotePad on Vista Read More...
My job at Microsoft has largely (for the last 55 months or so that I have been doing it for Microsoft as a full-time employee) been work falling into three broad categories: A core chunk of Windows NLS and .NET internationalization, supporting most often Read More...
The other day I was talking about Montenegro in this post . There are a whole bunch of interesting issues related to Montenegro in software even after you are done chuckling about the silly Outlook bugs. For example -- what language should the locales Read More...
There have been a few questions coming my way lately about ASCII such as managed one this from Michael Liu: Is there a WideCharToMultiByte equivalent in .NET 1.1/2.0 for the ASCII code page? I'd like to perform a best-fit mapping of non-ASCII characters Read More...
Way back near the end of 2005 in What's up with the language names? , I went through the many different language names available programmatically in both Windows nd the .NET Framework. One particular issue I went on about at length in particular was LOCALE_SLANGUAGE Read More...
So I wrote a post and set it to go live at 12:01 am (an hour before this one is set to go live), yet it went live at 11:01 pm the day before. Even though the changeover time isn't supposed to be midnight. And why? Well, the server is (I am told) on the Read More...
The CreateWindowEx function has several flags that as documented are clearly related to right-to-left scripts: WS_EX_LAYOUTRTL Arabic and Hebrew versions of Windows 98/Me, Windows 2000/XP: Creates a window whose horizontal origin is on the right edge. Read More...
Regular reader Rosyna asked the other day in a comment to an unrelated post: What decides the mnemonics used for the various checkboxes? Like Alt+E for "Use smart cursoring" (What is cursoring, is that a word?) But how does it come to take the "e" from Read More...
Anyone who reads here regularly knows that I'd always prefer to see applications support Unicode. But obviously there are a few applications out there that don't support Unicode. At least not yet. Some of those applications have been around for a long Read More...
Localizer Michel from down the hall and one floor down had been asked about a potential bug, so after that provided me with some screenshots and asked: Hi Michael, Not sure if this is a bug or by design (legacy keyboard). Is there an alias to report and Read More...
A not-so-uncommon question people ask is why ToUnicode and ToUnicodeEx return -1 when the string that they return is a dead key. I mean, especially since the return value in all other cases gives you an actual size of the buffer that is returned. Doesn't Read More...
(Apologies for the Colbert reference!) It all started with a post from Pavanaja U B over in the microsoft.public.word.international.features newsgroup: I am facing this peculiar problem in Word 2007 and Vista. When I use the built-in Kannada keyboard Read More...
Perhaps I have set myself up for this sort of question, in which case I have only myself to blame. :-) But in the early hours Abbott Fleur asked me via the Contact link: Using the published api's I can query and list the contents of know tables in an Read More...
Sometimes I see a documentation topic that bothers me a little bit. And then occasionally I'll see one that bothers me a lot. Like that .NET Framework Developer's Guide: Custom Case Mappings and Sorting topic that I complained about in Custom Case Mappings? Read More...
So anyway, I was pointed to Chris Mullins' .NET Unicode Puzzle and was struck by the irony of the use of the ASCII code page rather than the CharUnicodeInfo class (which I used for my own solution to the problem in Stripping Diacritics ). I don't mean Read More...
Language Interface Packs are not something that Microsoft has been charging people money for. So you can easily get your Mapudungun , اردو , Inuktitut , മലയാളം , Qhichwa Simi , فارسی , isiZulu , ಕನ್ನಡ , नेपाली , Afrikaans , कोंकणी , Setswana , বাংলা , Read More...