CSE1720_F11_Lecture10_Inheritance_IV.pptx - Topics CSE 1720...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 1720 Lecture 10 Graphics and Fonts Topics fonts, string formatting 2 The Basics draw(Shape) – our go-to method for drawing shape primitives drawString(String, int, int) drawString(AttributedCharacterIterator, int, int) – these will be our go-method for drawing strings – the version using AttributedCharacterIterator will be covered, time permitting – E.g., L10App01 3 How is Font information Encapsulated… e.g., L10App02 – information about font face , font style , font size is encapsulated in the Font object – refer to the Font API 4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Font Concepts font family or typeface refers to a typographic design across several faces, e.g., Helvetica, Courier – members within the family share a common design by vary in terms of weight (bold/not bold), orientation (italics/non italics), width (condensed/non condensed) font refers to a speci±c member of a font family – Times Italic – once upon a time (in the era of metal types), font also referred to point size – the Font API refers to this as font name font style indicates plain, bold, italic, bold+italic font size is more complicated… 5 Font Concepts point size refers to the size of the font, – 1 pt is approx 1/72 of an inch; a 72 pt font is approx 1” high what does point size actually mean, given that the characters are all different heights? for this, we need some basic font terminology 6 Typography Concepts character refers to the smallest semantic unit of a language glyph refers to the speci±c form characters can take on in a font face e.g., character: the unicode character \u0041 corresponding glyphs: A A A A to do typographic layout, glyphs for the characters of a given string must be selected and positioned – in older times, this was done manually – nowadays, this is done automatically or semiautomatically
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

CSE1720_F11_Lecture10_Inheritance_IV.pptx - Topics CSE 1720...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online