 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gustavo Schmidt Simoes Guest
|
Posted: Fri Jun 25, 2004 9:20 pm Post subject: WMF fonts problems |
|
|
Hi everybody !
I have a wmf file made in Corel Draw 12.
I use this wmf as a base image to draw some text on int using Courier New
font.
For this purpose I use TMetaFile and TMetaFileCanvas.
It works fine.
But in some machines, with the same SO, service pack, video resolution (W2K
Prof. SP4, 800x600 16bit color) it seens that the SO canīt find the Courier
New font and uses another font automatically. So I have wrong display. Itīs
curious because I open MS Word and can verify that the font Courier New is
there and properly working.
I alread try to reinstall courier new font with font files of the machine
that works fine but it doesnīt work.
Anybody can help me with this situation ?
Thanks a lot.
Gustavo
|
|
| Back to top |
|
 |
Gordon Whittam Guest
|
Posted: Sat Jun 26, 2004 11:02 am Post subject: Re: WMF fonts problems |
|
|
In article <40dc9978 (AT) newsgroups (DOT) borland.com>, Finn Tolderlund wrote:
| Quote: | How windows actually decides which font to use instead nobody in the known
universe knows.
|
It's a bit old but it does give some idea of how it works:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngdi/html/
msdn_fontmap.asp
Gordon
|
|
| Back to top |
|
 |
Finn Tolderlund Guest
|
Posted: Sat Jun 26, 2004 12:50 pm Post subject: Re: WMF fonts problems |
|
|
I think I have seen this article before, but still a good link.
But the big problem with windows font mapping is that it is simply
impossible to predict what font is chosen because the algorithm is rather
complicated and because it depends on what fonts the current user may have
installed.
--
Finn Tolderlund
"Gordon Whittam" <gordon (AT) mgcsoft (DOT) com> skrev i en meddelelse
news:VA.00000164.0047c16b (AT) mgcsoft (DOT) com...
|
|
| Back to top |
|
 |
Gustavo Schmidt Simoes Guest
|
Posted: Sat Jun 26, 2004 1:38 pm Post subject: Re: WMF fonts problems |
|
|
OK, I read the article.
But, the fact is, the font courier new is installed on the system, I just
canīt find out why windows or delphi is using another font instead.
And a curious fact. In my wmf image I have another fonts like Stencil BT.
Texts write using this fonts are OK, the problem is only with Courier New...
Do You have any ideia of what is going on ?
Thanks a lot
Gustavo
"Finn Tolderlund" <no (AT) spam (DOT) dk> escreveu na mensagem
news:40dd707d$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I think I have seen this article before, but still a good link.
But the big problem with windows font mapping is that it is simply
impossible to predict what font is chosen because the algorithm is rather
complicated and because it depends on what fonts the current user may have
installed.
--
Finn Tolderlund
"Gordon Whittam" <gordon (AT) mgcsoft (DOT) com> skrev i en meddelelse
news:VA.00000164.0047c16b (AT) mgcsoft (DOT) com...
In article <40dc9978 (AT) newsgroups (DOT) borland.com>, Finn Tolderlund wrote:
How windows actually decides which font to use instead nobody in the
known
universe knows.
It's a bit old but it does give some idea of how it works:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngdi/html/
msdn_fontmap.asp
|
|
|
| Back to top |
|
 |
Gustavo Schmidt Simoes Guest
|
Posted: Sat Jun 26, 2004 1:40 pm Post subject: Re: WMF fonts problems |
|
|
Another detail to Finn,
The font is configured to size 6, with style := [], nothing special.
Gustavo
"Finn Tolderlund" <no (AT) spam (DOT) dk> escreveu na mensagem
news:40dd707d$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I think I have seen this article before, but still a good link.
But the big problem with windows font mapping is that it is simply
impossible to predict what font is chosen because the algorithm is rather
complicated and because it depends on what fonts the current user may have
installed.
--
Finn Tolderlund
"Gordon Whittam" <gordon (AT) mgcsoft (DOT) com> skrev i en meddelelse
news:VA.00000164.0047c16b (AT) mgcsoft (DOT) com...
In article <40dc9978 (AT) newsgroups (DOT) borland.com>, Finn Tolderlund wrote:
How windows actually decides which font to use instead nobody in the
known
universe knows.
It's a bit old but it does give some idea of how it works:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngdi/html/
msdn_fontmap.asp
|
|
|
| Back to top |
|
 |
Finn Tolderlund Guest
|
Posted: Sat Jun 26, 2004 4:07 pm Post subject: Re: WMF fonts problems |
|
|
I'm sorry but I don't know is happening.
Remember, the font mapping is just an idea, it could be something else.
--
Finn Tolderlund
"Gustavo Schmidt Simoes" <gssimoes (AT) globo (DOT) com> skrev i en meddelelse
news:40dd7f2d$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Another detail to Finn,
The font is configured to size 6, with style := [], nothing special.
Gustavo
"Finn Tolderlund" <no (AT) spam (DOT) dk> escreveu na mensagem
news:40dd707d$1 (AT) newsgroups (DOT) borland.com...
I think I have seen this article before, but still a good link.
But the big problem with windows font mapping is that it is simply
impossible to predict what font is chosen because the algorithm is
rather
complicated and because it depends on what fonts the current user may
have
installed.
--
Finn Tolderlund
"Gordon Whittam" <gordon (AT) mgcsoft (DOT) com> skrev i en meddelelse
news:VA.00000164.0047c16b (AT) mgcsoft (DOT) com...
In article <40dc9978 (AT) newsgroups (DOT) borland.com>, Finn Tolderlund wrote:
How windows actually decides which font to use instead nobody in the
known
universe knows.
It's a bit old but it does give some idea of how it works:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngdi/html/
msdn_fontmap.asp
|
|
|
| Back to top |
|
 |
Gordon Whittam Guest
|
Posted: Sat Jun 26, 2004 9:24 pm Post subject: Re: WMF fonts problems |
|
|
In article <40dc9721$1 (AT) newsgroups (DOT) borland.com>, Gustavo Schmidt Simoes wrote:
| Quote: | But in some machines, with the same SO, service pack, video resolution (W2K
Prof. SP4, 800x600 16bit color) it seens that the SO canīt find the Courier
New font and uses another font automatically.
|
Have a look under the following key:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows
NTCurrentVersionFontSubstitutes or the equivalent on whatever machine it
is. Not saying it's the problem but the potential to choose something
unexpected is there or would appear to be.
Gordon
|
|
| Back to top |
|
 |
Gustavo Schmidt Simoes Guest
|
Posted: Sat Jun 26, 2004 10:01 pm Post subject: Re: WMF fonts problems |
|
|
Ok, Iīll try the registry key.
Thanks a lot for both of You.
Gustavo
"Gordon Whittam" <gordon (AT) mgcsoft (DOT) com> escreveu na mensagem
news:VA.00000165.02817116 (AT) mgcsoft (DOT) com...
| Quote: | In article <40dc9721$1 (AT) newsgroups (DOT) borland.com>, Gustavo Schmidt Simoes
wrote:
But in some machines, with the same SO, service pack, video resolution
(W2K
Prof. SP4, 800x600 16bit color) it seens that the SO canīt find the
Courier
New font and uses another font automatically.
Have a look under the following key:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows
NTCurrentVersionFontSubstitutes or the equivalent on whatever machine it
is. Not saying it's the problem but the potential to choose something
unexpected is there or would appear to be.
Gordon
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|