🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #233860

--

#233860
From: _
Date: Fri, 19 Jun 2009 01:52
62 lines
3578 bytes
40tude Dialog can't display certain glyphs.

FireFox, ThunderBird, IE8, Opera, Windows Live Mail, XanaNews,
Pan, slrn(on Debian) and X.ZIP know where the glyphs are.

With Visual C++, I know if a glyph is in a font this way:
[ code is from www.JeffRelf.F-M.FM/X.CPP ]

  HFONT  DejaVu ;
  typedef ushort * pUShort ;
    ――――――
  TheCache->GetDC( & DC );
  Try( DejaVu )
    ―――――――
  #define  Try( F )  \
    if ( F ) {  \
      SelectObject( DC, F );  \
      GetGlyphIndices(  \
          DC, &SomeGlyph, 1  \
        , pUShort( & Good ), GGI_MARK_NONEXISTING_GLYPHS );  \
      if ( Good != -1 )  goto  HaveGlyph ;  }
  
I know if a font exists this way:

  #include <GDIPlus.H>
  #pragma comment( lib, "GDIPlus.LIB")
  using namespace Gdiplus;
       ―――――――――――――――
  GdiplusStartupInput  Plus_;
  GdiplusStartup( ( ulong * ) & rv, & Plus_, 0 );
       ―――――――――――――――
  gFont( DejaVu, L"DejaVu Sans Mono", _chH(132./256) );
       ――――――――――
  gFont( HFONT &F, LnP  N, int H ) {
    FontFamily Nym( N );  if ( ! Nym.IsAvailable() ) return ;
    DeleteObject( F );
    F = CreateFont( H, 0,0,0,0,0,0,0,0,0,0,0, FIXED_PITCH, N );  }

I install a font this way:

  insFont( L"DejaVuSansMono.TTF", L"DejaVu Sans Mono (TrueType)" );
      ――――――――――――
insFont( LnP fileName, LnP regName ) {
  wchar_t srcNym[400], desNym[400]; LnP P = srcNym ; FILE  *fp;
  P += GetCurrentDirectory( 300, P ); Str( P, L"\\%s", fileName );
  fp = fopen( srcNym, L"rb" ); if ( ! fp )  return ;  fclose( fp );
  Str( desNym, L"%s\\Fonts\\%s", _wgetenv(L"WinDir"), fileName );
  fp = fopen( desNym, L"rb" );  if ( fp ) {  fclose( fp ); return ;  }
  
  AddFontResource( srcNym ), CopyFile( srcNym, desNym, 0 );
  HKEY Key, Key_98 ;
  RegOpenKeyExW( HKEY_LOCAL_MACHINE
  , L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"
  , 0, KEY_ALL_ACCESS, & Key );
  RegOpenKeyExW( HKEY_LOCAL_MACHINE
  , L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Fonts"
  , 0, KEY_ALL_ACCESS, & Key_98 );

  _LnP  F = _LnP( fileName ); int Sz = strSz( fileName ) + 1 ;
  Sz *= szChr ;
  RegSetValueEx( Key, regName, 0, REG_SZ, F, Sz );
  RegSetValueEx( Key_98, regName, 0, REG_SZ, F, Sz );  }
Technical Details
Message-ID: <_@Jeff_Relf.Seattle.2009_Jun18.6.52pm.mh>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
References: <Xns9C27BCAB2A054uniquelyme@nntp.motzarella.org> <slrnh3ii5n.ulr.pjr@pjr.gotdns.org> <Xns9C2D9E95833CFxs11eyahoocom@188.40.43.213> <20090617212234.2d4437d5@bellgrove.remarqs.net> <1nm439xen9062.dlg@justacineast.motzarella.org> <1et5oxhtm6w18.dlg@deepthought.ena.si>

Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_Jun18.6.52pm.mh>
Subject: --
Date: Fri, 19 Jun 2009 01:52:36 +0000
From: _@Jeff_Relf.Seattle.inValid
References: <Xns9C27BCAB2A054uniquelyme@nntp.motzarella.org> <slrnh3ii5n.ulr.pjr@pjr.gotdns.org> <Xns9C2D9E95833CFxs11eyahoocom@188.40.43.213> <20090617212234.2d4437d5@bellgrove.remarqs.net> <1nm439xen9062.dlg@justacineast.motzarella.org> <1et5oxhtm6w18.dlg@deepthought.ena.si>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
Newsgroups: news.software.readers
Organization: Glorb Internet Services, http://www.glorb.com
Lines: 62
NNTP-Posting-Host: gofE46V3SLuxzI+frk8GZQ.user.posting2.glorb.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Fri, 19 Jun 2009 01:52:36 +0000 (UTC)
X-Notice: Scanned by Mr. Bill
User-Agent: JeffRelf.F-M.FM/X.ZIP