Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
BartVandewoestyne committed Jun 11, 2024
1 parent 8bd48bd commit 4c89f32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Structural_Patterns/Flyweight/flyweight1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

int main()
{

// Assuming we're at index 102 in the traversal (see 'BTree structure for
// font intormation' in the book page 202), then the following code sets
// the font of each character in the word "expect" to that of the
// surrounding text (that is, times12, an instance of Font for 12-point
// Times Roman).
GlyphContext gc;
Font* times12 = new Font("Times-Roman-12");
Font* timesItalic12 = new Font("Times-Italic-12");
Expand Down

0 comments on commit 4c89f32

Please sign in to comment.