Windows Programming Text and Fonts This presentation will probably involve audience discussion, which will create action items. Use PowerPoint to keep.

Slides:



Advertisements
Similar presentations
INFORMATION SYSTEMS APPLIED MULTIMEDIA HIGHER This presentation will probably involve audience discussion, which will create action items. Use PowerPoint.
Advertisements

MS® PowerPoint.
Tutorial 2: Formatting Text. Objectives Session 2.1 – Learn the functions of the Common toolbar – Change the size of text – Discern which fonts to use.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office PowerPoint 2007 Lab 1 Creating a Presentation.
Exploring Microsoft Word
How to Use Microsoft PowerPoint What is PowerPoint? Presentation software that allows you to create slides, handouts, notes, and outlines. Slide.
CS&E 1111 PowerPoint Microsoft PowerPoint Learning about Presentation Software and using Microsoft PowerPoint Slide views Preparing text, drawings and.
Chapter 6 Placing Type in an Image. Chapter Lessons Learn about type and how it is created Change spacing and adjust baseline shift Use the Drop Shadow.
Typography Font type Font size Font style (e.g., bold, italic) Color Font effects The first 3 of these can be set in the formatting toolbar, and all of.
Font types, sizes, and styles Formatting is used on our worksheet cells to emphasize a particular piece of information or to add additional information.
Web Design, 5 th Edition 5 Typography and Images.
Introduction to Interactive Media 06: Text: Static Interactive Media Component.
1 CP586 © Peter Lo 2003 Multimedia Communication Font and Text.
Exploring Word Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Gaining Proficiency: Editing and Formatting.
Art 368 WEB Design 1 Spring 2002 Type Two basic families:  Serif and Sans Serif Parts of all type Ascenders, descenders, baseline, etc. Leading= linespacing/paragraph.
Basic PowerPoint Skills. What is a Presentation? Presentation: an informative speech that usually includes visuals, such as slides. The file name for.
B.Sc. Multimedia ComputingMedia Technologies Character Representation & Font Technology.
Multimedia- Microsoft PowerPoint
Things to Know about PowerPoint How do I do this?.
Krista Crawford Walden University EDUC 7107
INTRODUCTION TO TYPOGRAPHY WHAT IS TYPOGRAPHY? Typography: The study of all elements of type including the shape, size and spacing of the characters.
POWERPOINT REVIEW Computer Technology. After reading the definition, think of the answer. Then, click to reveal the answer and see if you are correct.
Format the Presentation. Selecting and Deselecting Objects 1.An object cannot be manipulated until it is selected. 2.Select various objects on PowerPoint.
Introduction to Interactive Media Interactive Media Components: Text.
Typography (Fonts). Type type = any set of printed characters font = a set of printable or displayable characters with a specific style and size typeface.
1 Windows GDI Programming CIS 487/587 Bruce R. Maxim UM-Dearborn.
Adobe Photoshop CS Design Professional AN IMAGE PLACING TYPE IN.
Fonts and Typography Section 7.3. Typography Typography: the style, arrangement, and appearance of text Well designed text makes your page more readable.
Chapter 5 Placing Type in an Image. Chapter Lessons Learn about type and how it is created Change spacing and adjust baseline shift Use the Drop Shadow.
1 Pitch (about 44 slides) Orienta tion Fonts. 2 Orientation : Portrait or Landscape.
Key Applications Module Lesson 20 — Enhancing Presentations with Multimedia Effects Computer Literacy BASICS.
Presentation Outline Introduction Painting and Repainting GDI.
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture 4: Graphic User Interface Graphical User Interface Larry Rudolph MIT 6.893; SMA 5508 Spring 2004.
Writing Good Reports Using Word to Present Research Findings & Program Outcomes.
TEXT.  Font Style Examples: ◦ Bold ◦ Italic ◦ Underline  Font Size Examples: ◦ Points  8 pt (can be smaller)  10 pt  12 pt.
THE BOOK BANK MAKERERE UNIVERSITY LIBRARY This presentation will probably involve audience discussion, which will create action items. Use PowerPoint to.
Chapter 6 Placing Type in an Image. Chapter Lessons Learn about type and how it is created Change spacing and adjust baseline shift Use the Drop Shadow.
PowerPoint Ch 4 Review. When you point to a hyperlink, the mouse pointer changes to a(n) __________? Hand.
1 Pertemuan 01 Explore state-of-the art tools Matakuliah: U0344 / DESKTOP 1 Tahun: 2006.
Learning Programming Windows API Morpheus Feb-28, 2008.
Microsoft Word Tutorial Albert Kalim. Topics You Should Know About Start MS Word Start MS Word Open a document Open a document Enter text Enter text Change.
Introduction To GDI GDI Definition : It is a interface present in windows which provide function and related structures that an application can use to.
How to Use Microsoft PowerPoint What is PowerPoint? Presentation software that allows you to create slides, handouts, notes, and outlines. Slide.
Programming windows with MFC Chapter 2 - Drawing in a Window
Tips for Inserting Graphs or Images Tips for Title/Columns Colors
Presentation Outline Introduction Painting and Repainting GDI.
Tips for Inserting Graphs or Images Tips for Title/Columns Colors
Microsoft PowerPoint Objectives
5/23/2018 Additional Features of WordPad
Continuous Random Variables
APPLIED MULTIMEDIA HIGHER
Exploring Microsoft Word 2003
Exploring Microsoft Word
Learning PowerPoint.
Final Project Presentation
واشوقاه إلى رمضان مرحباً رمضان
Queued and Nonqueued Messages
Presented by: Arlene N. Baratang
Evaluation of Data Fusion Methods Using Kalman Filtering and TBM
Continuous Random Variables
Windows Programming Lecture 13
Learning PowerPoint.
CS 1253 Visual Programming Unit I Windows Environment
Poster Title Poster Title ABSTRACT METHODS RESULTS CONCLUSION
Computer Literacy BASICS
The Power Of PowerPoint.
Chapter 14 Drawing in a Window
Chapter 4 Enhancing the Graphical User Interface
CPT 450 Computer Graphics 3rd Lecture.
Poster Title Authors’ Names Institution/Organization/Company
Presentation transcript:

Windows Programming Text and Fonts This presentation will probably involve audience discussion, which will create action items. Use PowerPoint to keep track of these action items during your presentation In Slide Show, click on the right mouse button Select “Meeting Minder” Select the “Action Items” tab Type in action items as they come up Click OK to dismiss this box This will automatically create an Action Item slide at the end of your presentation with your points entered. Presented By:- Anchal Sharma

2 Introduction Text Fonts GDI (Graphics Device Interface) Drawing and Filling Windows APIs

3 Text Basics (Requirements) Text Tradition Art Technology Soft proofing

4 Fonts Basics Family (Roman) Style (Italicize condense etc.) Size (Point 1/72“)

5 Font Families A font family is a set of fonts having common stroke width and serif characteristics. There are five font families. A sixth family allows an application to use the default font.

6 Font familyDescription DecorativeSpecifies a novelty font. An example is Old English. DontcareSpecifies a generic family name. This name is used when information about a font does not exist or does not matter. The default font is used. ModernSpecifies a monospace font with or without serifs. Monospace fonts are usually modern; examples include Pica, Elite, and Courier New. RomanSpecifies a proportional font with serifs. An example is Times New Roman. ScriptSpecifies a font that is designed to look like handwriting; examples include Script and Cursive. SwissSpecifies a proportional font without serifs. An example is Arial.

7 Font Size

8 GDI Abstraction Device Independence Responsibility of the programmer Parts Text Filled Areas Lines and curves Bitmaps

9 GDI Objects ClassWindows handle type CPenHPEN CBrushHBRUSH CFontHFONT CBitmapHBITMAP CPaletteHPALETTE CRgnHRGN

10 Device Context BeginPaint GetDC / ReleaseDC NULL param gives screen Hwnd param gives client CreateDC(“DISPLAY”,…); GetWindowDC

11 Fonts (Windows) GDI Fonts / Device Fonts Raster(nonscaleable) : SYSTEM_FONT, SYSTEM_FIXED_FONT, OEM_FIXED_FONT, Courier, Ms Serif, MS Sans Serif, Small Fonts stroke : Connect the dots (Modern Roman Script) Plotter fonts True Type / OpenType GetStockObject Cannot be specific about selection DEFAULT_GUI_FONT: MS Sans Serif

12 Font Consistency Embedding: GetOutlineTextMetrics() otmfsType=1 OUTLINETEXTMETRIC structure System Fonts Using of Fonts Enumeration User Choice Fixed type (sys fonts)

13 Font Storages (Windows) Historically, font sizes were large to fit standard disks. Just like.dll Raster/Vector:.fon file contains data OpenType/TrueType:.fon file is header and.ttf file contains the data

14 Character Set Encoding scheme Unicode (multi-byte codes) OEM Windows Vendor (external like EBCDIC)

15 GDI (Co-ordinates/Mapping) Mapping mode does not change messages Screen Coordinates/Client Cordinates SetViewPortOrgEx: Device SetWindowOrgEx: Logical

16 Mapping ModeLogical Unitx-axisy-axis MM_TEXTPixelRightDown MM_LOMETRIC0.1 mmRightUp MM_HIMETRIC0.01 mmRightUp MM_LOENGLISH0.01 in.RightUp MM_HIENGLISH0.001 in.RightUp MM_TWIPS1/1440 in.RightUp MM_ISOTROPICArbitrary (x = y)Selectable MM_ANISOTROPICArbitrary (x !=y)Selectable Mapping Modes

17 Logical Inches Size of inch is larger on display Size of inch is same on printer

18 Drawing Lines MoveTo LineTo Bezier PolyBezier PolyBezierTo Arcs AngleArc Arc, ArcTo

19 Creating Paths / Regions Clipping Filling Drawing Functions BeginPath(hdc) draw lines etc. connected and then EndPath(hdc) CreateRectRgn, CreateRoundRectRgn

20 Shapes EllipsePieRectangleChordPolygon Shapes

21 Styling the Shapes Fill Brush SetROP2 : Raster Operations SetFillPoly Winding Alternate FillRect, FillRoundRect

22 Text APIs TextOut(hdc,ystart,pString,iCount) Does not recognize null character strings GDI function TabbedTextOut(hdc,xStart,yStart,pStrin g, iCount, iNumTabs, piTabStops, xTabOrigin); iNumTabs=NULL (def 8) iNumTabs=1 (piTabStops repeated arg.)

23 Text API s Cont… ExtTextOut(hdc,xSt,ySt,iOpt, &rect,pString, iCount, pxDistance); ETO_CLIPPED, ETO_OPAQUE, pxDistance=spacings, null for def. DrawText(hdc,pString,iCount, &rect,iFormat); Recognize null terminated Strings. Also \n \r \t For \t use DT_EXPANDTABS If TA_CENTER then ½ text DT_TABSTOP DrawTextEx(hdc,pString,iCount,&rect, iFormat,&drawtextparams); Works on avg character increments

24 Text API’s Cont… SetTextCharacterExtra(hdc, iExtra); iExtra cannot be –ve (absolute value taken) TEXTMETRICS tm.Hieght is not font size it includes internal leading.font size

25 tagTEXTMETRIC Structure TEXTMETRIC tmHeight tmAscent tmDescent tmInternalLeading tmExternalLeading tmAveCharWidth tmMaxCharWidth tmOverhang tmDigitizedAspectX tmDigitizedAspectY tmFirstChar tmLastChar tmDefaultChar tmBreakChar tmItalic tmUnderlined tmStruckOut tmPitchAndFamily tmCharSet

26 Pitch & Family TMPF_FIXED_PITC H TMPF_VECTOR TMPF_TRUETYPE TMPF_DEVICE 0X01 0X02 0X03 0X04

27 Font API’s CreateFont, CreateFontIndirect, GetTextFace, GetTextMetrics. lfCharSet : only value with default 1 Struct: LOGFONT,CHOOSEFONT,PANOSE GetOutlineTextMetrics: PANOSE

28 WinNT/Win98 SetGraphicsMode(GM_ADVANCED) WinNt: escapement, orientations. SetWorldTransform Mode should be advanced

29 Kerning/Antialiasing DWORD GetKerningPairs( HDC hdc, DWORD nNumPairs, LPKERNINGPAIR lpkrnpair); Anti – aliasing: GetDeviceCaps

30 References Charles Petzold, Programming Windows, 5 th Edition Text and Fonts, Msdn Library Lines and Curves, Msdn Library K.P. Rao, Printing classes

31 Thank You Questions?