~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/samples/layout/GDIFontMap.cpp

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 ******************************************************************************
3
 
 * Copyright (C) 1998-2001, International Business Machines Corporation and   *
4
 
 * others. All Rights Reserved.                                               *
5
 
 ******************************************************************************
6
 
 */
7
 
 
8
 
#include <windows.h>
9
 
 
10
 
#include "RenderingFontInstance.h"
11
 
#include "GDIFontInstance.h"
12
 
 
13
 
#include "GUISupport.h"
14
 
#include "FontMap.h"
15
 
#include "GDIFontMap.h"
16
 
 
17
 
GDIFontMap::GDIFontMap(HDC hdc, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, RFIErrorCode &status)
18
 
    : FontMap(fileName, pointSize, guiSupport, status), fHdc(hdc)
19
 
{
20
 
    // nothing to do?
21
 
}
22
 
 
23
 
GDIFontMap::~GDIFontMap()
24
 
{
25
 
    // anything?
26
 
}
27
 
 
28
 
const RenderingFontInstance *GDIFontMap::openFont(const char *fontName, le_int16 pointSize, RFIErrorCode &status)
29
 
{
30
 
    return new GDIFontInstance(fHdc, fontName, pointSize, status);
31
 
}