Article View: alt.free.newsservers
Article #112062DejaVu is now in my Vista/XP “ Theme ”.
From: Jeff▲Relf
Date: Sat, 21 Feb 2009 20:47
Date: Sat, 21 Feb 2009 20:47
66 lines
3537 bytes
3537 bytes
Thanks for the monoSpaced font statistics ( per OS ):
codeStyle.ORG/css/font-family/sampler-Monospace.shtml
Mostly, it's “ Unix ” users that use the best font: DejaVu Sans Mono.
DejaVu is now in my Vista/XP “ Theme ”:
JeffRelf.F-M.FM/Jeff_Relf.Theme
and in my styleSheet overRides for fireFox:
JeffRelf.F-M.FM/userContent.CSS
JeffRelf.F-M.FM/userChrome.CSS
JeffRelf.F-M.FM/X.CPP, of course, has it too.
When the screen reSizes ( or first comes up ):
gFont( DejaVu, L"DejaVu Sans Mono", CharH );
gFont( Consolas, L"Consolas", CharH );
gFont( Courier, L"Courier New", CharH );
gFont( Mincho, L"MS Mincho", _CharH(128./256) );
gFont( Musical, L"Musical Symbols", _CharH(1/4.5) );
.......
gFont( HFONT &F, LnP N, int H ) {
FontFamily Nym( N );
if ( ! Nym.IsAvailable() )
// Font is not installed, leave it NULL.
return ;
DeleteObject( F );
F = CreateFont( H, 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N ); }
When caching a glyph:
#define Try( F ) \
if ( F ) { \
/* Font exists, see if it has our glyph */ \
SetPtr( DC, F ); \
GetGlyphIndices( \
DC, B, 1, pUShort( & Good ), GGI_MARK_NONEXISTING_GLYPHS ); \
if ( Good != -1 ) goto HaveGlyph ; }
int ColsCh, CacheW, CacheH ; const int Dub = 2 ;
HFONT DejaVu, Consolas, Courier, Mincho, Musical ;
_CacheGlyph( GyP P, int I_Hue, _SurT TheCache, int _X ) {
// 0xD834 Double Sharp: DD2A Bass: DD1E
int Bass = P->Ch >= 0xDC00 && P->Ch <= 0xDFFF ;
static wchar_t B[ 2 ];
wchar_t Ch = B[ Bass ] = P->Blank ? * L"‽" : P->Ch ;
if ( Bass ) * B = 0xD834 ;
HDC DC ;
// Get the DeviceContext for the DirectDraw surface.
Chk( TheCache->GetDC( & DC ) );
SetTextAlign( DC, TA_LEFT | TA_TOP | TA_UPDATECP );
short Good ;
if ( Bass && Musical ) {
// Careless kluge, used to print a Supplimentory Plane glyph
SetPtr( DC, Musical ); goto HaveGlyph ; }
// Find a glyph in these fonts, in this order.
Try( DejaVu ) Try( Consolas ) Try( Courier ) Try( Mincho )
// Can't cache the glyph, give up.
Chk( TheCache->ReleaseDC( DC ) ); return 1 ;
HaveGlyph:
// Cache the glyph.
.....
Technical Details
Message-ID:
<Jeff_Relf@Seattle.2009_Feb.21|0.47pm|n>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!feeder.news-service.com!130.133.1.3.MISMATCH!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<Jeff_Relf@Seattle.2009_Feb.19|7.16pm|f> <pan.2009.02.20.16.41.45@shared-secrets.com> <Jeff_Relf@Seattle.2009_Feb.20|3.07pm|F> <pan.2009.02.21.01.37.53@shared-secrets.com> <Jeff_Relf@Seattle.2009_Feb.20|8.48pm|A> <pan.2009.02.21.14.40.36@shared-secrets.com>Show Full Headers
Complete Article Headers
Message-ID: <Jeff_Relf@Seattle.2009_Feb.21|0.47pm|n> Subject: DejaVu is now in my Vista/XP “ Theme ”. Date: Sat, 21 Feb 2009 20:47:48 +0000 From: Jeff▲Relf <Jeff_Relf@Seattle.TEST> References: <Jeff_Relf@Seattle.2009_Feb.19|7.16pm|f> <pan.2009.02.20.16.41.45@shared-secrets.com> <Jeff_Relf@Seattle.2009_Feb.20|3.07pm|F> <pan.2009.02.21.01.37.53@shared-secrets.com> <Jeff_Relf@Seattle.2009_Feb.20|8.48pm|A> <pan.2009.02.21.14.40.36@shared-secrets.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!feeder.news-service.com!130.133.1.3.MISMATCH!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers,alt.free.newsservers Lines: 66 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 5czKPRrTeOgw3UiKqU67mAsF2LaI2baq5aD7QhgeO2UaTsFsA0 Cancel-Lock: sha1:IjbgBwz4IK0+tlrejheEJrSJm9Q= User-Agent: JeffRelf.F-M.FM/X.ZIP