Article View: news.software.readers
Article #258419--
From: Jeff-Relf.Me
Date: Fri, 21 Nov 2014 18:43
Date: Fri, 21 Nov 2014 18:43
49 lines
3436 bytes
3436 bytes
<PRE><big><big>
<<A hRef='http://Jeff-Relf.Me/X.CPP'
target=_blank>This Visual C++ 2013, x64 code</A>> produces, <<A hRef='http://Jeff-Relf.Me/X.EXE'
target=_blank>X.EXE</A>>,
my Windows 8 "Start Button", "terminal/console", newsReader,
email·client, web/image downloader/viewer, backup/diff utility,
"Chess, Uki, Mario, Solitair, Monopoly" games, etc.
The "help/settings file" is <<A hRef='http://Jeff-Relf.Me/X.HTM' target=_blank>Here</A>>.
"MS Mincho", with "DejaVu LGC Sans Mono" and "nSimSun" exceptions,
are the "Unicode Console" fonts -- required.
If they don't exist, warnings are issued using "Consolas" ( Vista ).
Note: This code needs Windows 8 or later.
3840 x 2160 ScreenShots: · <A hRef="http://Jeff-Relf.Me/X.PNG" target=_blank>The Console/Keyboard</A>, · <A hRef="http://Jeff-Relf.Me/Chess.JPG"
target=_blank>Fast/Mindless Chess</A>,
· <A hRef="http://Jeff-Relf.Me/Reversi.JPG" target=_blank>Reversi</A>, · <A hRef="http://Jeff-Relf.Me/Solitair.JPG"
target=_blank>Solitair</A>, · <A hRef="http://Jeff-Relf.Me/Super.Fast.Monopoly.JPG"
target=_blank>Fast/Mindless Monoply</A>, · <A hRef="http://Jeff-Relf.Me/Mario.JPG" target=_blank>Mario</A>.
<<A hRef="http://Jeff-Relf.Me/DirectX.CPP"
target=_blank>DirectX.CPP, Visual C++ 2013, x64</A>> is a small (one-file)
example of how to:
· Make all Fonts/Glyphs the same width (double·width is allowed).
· Rescale Graphics/Glyphs when a window changes size.
· Use DirectX 11.1, Direct2D 1.1, DirectWrite, and Direct3D.
· Draw to a back buffer at a high fps (frames per second).
· Draw properly scaled/smoothed .JPG files, hardware accelerated.
· Draw to/from/within bitmaps.
· Discover if a font exists or not ("FindFamilyName()").
· Discover if a glyph exists in a font ("HasCharacter()").
· Discover the width/height of a glyph ("GlyphWH()").
Your startup folder should have, e.g., "Pics/LowRes.JPG" ( 100px wide/tall )
and "Pics/Chess.JPG" ( a 2160 x 3840 screenshot, Jeff-Relf.Me/Chess.JPG ).
All coordinates are in hard⋅pixels (D2D1_UNIT_MODE_PIXELS).
Note: This code needs Windows 8 or later.
"MS Mincho", "DejaVu LGC Sans Mono", "nSimSun", and "Arial Unicode MS"
are the fonts being tested.
All but Arial are "Unicode Console" fonts.
<<A hRef='http://Jeff-Relf.Me/Glyph.JPG' target=_blank>A 3840 x 2160 ScreenShot</A>>.
To record "debug/WM_*" messages, use <<A hRef='http://Jeff-Relf.Me/Debug.CPP' target=_blank>Debug.CPP</A>>.
"X.EXE", above, is a more complex, yet still simple, example.
Technical Details
Message-ID:
<Jeff-Relf.Me@Nov.21{10.43A.Seattle.2014}>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!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntpswitch.blueworldhosting.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <Jeff-Relf.Me@Nov.21{10.43A.Seattle.2014}>
Subject: --
Date: Fri, 21 Nov 2014 18:43:07 +0000
From: Jeff-Relf.Me <@.>
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!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntpswitch.blueworldhosting.com!not-for-mail
Content-Type: Text/HTML; charset=UTF-8
Content-Transfer-Encoding: 8bit
Newsgroups: alt.free.newsservers, news.software.readers, comp.os.linux.advocacy, sci.physics
sci.physics
User-Agent: Jeff-Relf.Me/X.HTM
X-Complaints-To: abuse@blueworldhosting.com
Organization: BWH Usenet NNTPSwitch-Cluster
Lines: 49
NNTP-Posting-Date: Fri, 21 Nov 2014 12:43:05 -0600
X-Trace: 273d3546f87b9ec90b8a629289