Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4bc1ebb5
Commit
4bc1ebb5
authored
Jul 24, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
Jul 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify init code to handle const data types.
parent
e4ca13ea
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
afm.c
dlls/wineps/afm.c
+0
-0
font.c
dlls/wineps/font.c
+3
-3
glyphlist.c
dlls/wineps/glyphlist.c
+1
-1
init.c
dlls/wineps/init.c
+1
-1
psdrv.h
dlls/wineps/psdrv.h
+13
-13
truetype.c
dlls/wineps/truetype.c
+0
-0
No files found.
dlls/wineps/afm.c
View file @
4bc1ebb5
This diff is collapsed.
Click to expand it.
dlls/wineps/font.c
View file @
4bc1ebb5
...
...
@@ -27,7 +27,7 @@ inline static float round(float f)
static
void
ScaleFont
(
DC
*
dc
,
LOGFONTW
*
lf
,
PSDRV_PDEVICE
*
physDev
)
{
PSFONT
*
font
=
&
(
physDev
->
font
);
WINMETRICS
*
wm
=
&
(
font
->
afm
->
WinMetrics
);
const
WINMETRICS
*
wm
=
&
(
font
->
afm
->
WinMetrics
);
TEXTMETRICW
*
tm
=
&
(
font
->
tm
);
LONG
lfHeight_ds
;
USHORT
usUnitsPerEm
,
usWinAscent
,
usWinDescent
;
...
...
@@ -452,8 +452,8 @@ BOOL PSDRV_SetFont( DC *dc )
/***********************************************************************
* PSDRV_GetFontMetric
*/
static
UINT
PSDRV_GetFontMetric
(
HDC
hdc
,
AFM
*
pafm
,
NEWTEXTMETRICEXW
*
pTM
,
ENUMLOGFONTEXW
*
pLF
,
INT16
size
)
static
UINT
PSDRV_GetFontMetric
(
HDC
hdc
,
const
AFM
*
pafm
,
NEWTEXTMETRICEXW
*
pTM
,
ENUMLOGFONTEXW
*
pLF
,
INT16
size
)
{
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
...
...
dlls/wineps/glyphlist.c
View file @
4bc1ebb5
...
...
@@ -157,7 +157,7 @@ static INT GlyphListSearch(LPCSTR szName, INT loIndex, INT hiIndex)
* necessary, and returns a pointer to it (NULL if unable to add it)
*
*/
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
)
const
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
)
{
INT
index
;
...
...
dlls/wineps/init.c
View file @
4bc1ebb5
...
...
@@ -462,7 +462,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
DWORD
type
=
REG_BINARY
,
needed
,
res
,
dwPaperSize
;
PRINTERINFO
*
pi
=
PSDRV_PrinterList
,
**
last
=
&
PSDRV_PrinterList
;
FONTNAME
*
font
;
AFM
*
afm
;
const
AFM
*
afm
;
HANDLE
hPrinter
;
const
char
*
ppd
=
NULL
;
char
ppdFileName
[
256
];
...
...
dlls/wineps/psdrv.h
View file @
4bc1ebb5
...
...
@@ -19,7 +19,7 @@ typedef struct {
typedef
struct
{
LONG
UV
;
GLYPHNAME
*
name
;
const
GLYPHNAME
*
name
;
}
UNICODEGLYPH
;
typedef
struct
{
...
...
@@ -36,9 +36,9 @@ typedef struct _tagAFMMETRICS {
int
C
;
/* character */
LONG
UV
;
float
WX
;
GLYPHNAME
*
N
;
/* name */
const
GLYPHNAME
*
N
;
/* name */
AFMBBOX
B
;
AFMLIGS
*
L
;
/* Ligatures */
const
AFMLIGS
*
L
;
/* Ligatures */
}
AFMMETRICS
;
typedef
struct
{
...
...
@@ -55,10 +55,10 @@ typedef struct {
}
WINMETRICS
;
typedef
struct
_tagAFM
{
char
*
FontName
;
char
*
FullName
;
char
*
FamilyName
;
char
*
EncodingScheme
;
LPCSTR
FontName
;
LPCSTR
FullName
;
LPCSTR
FamilyName
;
LPCSTR
EncodingScheme
;
LONG
Weight
;
/* FW_NORMAL etc. */
float
ItalicAngle
;
BOOL
IsFixedPitch
;
...
...
@@ -73,7 +73,7 @@ typedef struct _tagAFM {
WINMETRICS
WinMetrics
;
float
CharWidths
[
256
];
int
NumofMetrics
;
AFMMETRICS
*
Metrics
;
const
AFMMETRICS
*
Metrics
;
}
AFM
;
/* CharWidths is a shortcut to the WX values of numbered glyphs */
/* Note no 'next' in AFM. Use AFMLISTENTRY as a container. This allow more than
...
...
@@ -82,7 +82,7 @@ typedef struct _tagAFM {
fonts for each DC (dc->physDev->Fonts) */
typedef
struct
_tagAFMLISTENTRY
{
AFM
*
afm
;
const
AFM
*
afm
;
struct
_tagAFMLISTENTRY
*
next
;
}
AFMLISTENTRY
;
...
...
@@ -218,7 +218,7 @@ typedef struct {
}
PSCOLOR
;
typedef
struct
{
AFM
*
afm
;
const
AFM
*
afm
;
TEXTMETRICW
tm
;
INT
size
;
float
scale
;
...
...
@@ -297,8 +297,8 @@ extern void PSDRV_MergeDevmodes(PSDRV_DEVMODEA *dm1, PSDRV_DEVMODEA *dm2,
extern
BOOL
PSDRV_GetFontMetrics
(
void
);
extern
PPD
*
PSDRV_ParsePPD
(
char
*
fname
);
extern
PRINTERINFO
*
PSDRV_FindPrinterInfo
(
LPCSTR
name
);
extern
AFM
*
PSDRV_FindAFMinList
(
FONTFAMILY
*
head
,
char
*
name
);
extern
BOOL
PSDRV_AddAFMtoList
(
FONTFAMILY
**
head
,
AFM
*
afm
);
extern
const
AFM
*
PSDRV_FindAFMinList
(
FONTFAMILY
*
head
,
char
*
name
);
extern
BOOL
PSDRV_AddAFMtoList
(
FONTFAMILY
**
head
,
const
AFM
*
afm
);
extern
void
PSDRV_FreeAFMList
(
FONTFAMILY
*
head
);
extern
BOOL
WINAPI
PSDRV_Init
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
);
...
...
@@ -425,7 +425,7 @@ extern DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice,
LPDEVMODEA
lpdm
);
VOID
PSDRV_DrawLine
(
DC
*
dc
);
INT
PSDRV_GlyphListInit
();
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
);
const
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
);
VOID
PSDRV_IndexGlyphList
();
BOOL
PSDRV_GetTrueTypeMetrics
();
const
AFMMETRICS
*
PSDRV_UVMetrics
(
LONG
UV
,
const
AFM
*
afm
);
...
...
dlls/wineps/truetype.c
View file @
4bc1ebb5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment