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
5537f38e
Commit
5537f38e
authored
Oct 30, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Move the face data structure out of freetype.c.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a1cdd98
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
+59
-0
font.c
dlls/gdi32/font.c
+20
-0
freetype.c
dlls/gdi32/freetype.c
+0
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+39
-0
No files found.
dlls/gdi32/font.c
View file @
5537f38e
...
...
@@ -551,6 +551,26 @@ struct gdi_font_family *find_family_from_any_name( const WCHAR *name )
return
NULL
;
}
struct
gdi_font_face
*
create_face
(
const
WCHAR
*
style
,
const
WCHAR
*
fullname
,
const
WCHAR
*
file
,
UINT
index
,
FONTSIGNATURE
fs
,
DWORD
ntmflags
,
DWORD
version
,
DWORD
flags
,
const
struct
bitmap_font_size
*
size
)
{
struct
gdi_font_face
*
face
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
face
)
);
face
->
refcount
=
1
;
face
->
style_name
=
strdupW
(
style
);
face
->
full_name
=
strdupW
(
fullname
);
face
->
face_index
=
index
;
face
->
fs
=
fs
;
face
->
ntmFlags
=
ntmflags
;
face
->
version
=
version
;
face
->
flags
=
flags
;
if
(
file
)
face
->
file
=
strdupW
(
file
);
if
(
size
)
face
->
size
=
*
size
;
else
face
->
scalable
=
TRUE
;
return
face
;
}
/* realized font objects */
#define FIRST_FONT_HANDLE 1
...
...
dlls/gdi32/freetype.c
View file @
5537f38e
This diff is collapsed.
Click to expand it.
dlls/gdi32/gdi_private.h
View file @
5537f38e
...
...
@@ -315,6 +315,42 @@ struct gdi_font_family
struct
list
*
replacement
;
};
struct
bitmap_font_size
{
int
width
;
int
height
;
int
size
;
int
x_ppem
;
int
y_ppem
;
int
internal_leading
;
};
struct
gdi_font_enum_data
{
ENUMLOGFONTEXW
elf
;
NEWTEXTMETRICEXW
ntm
;
};
struct
gdi_font_face
{
struct
list
entry
;
unsigned
int
refcount
;
WCHAR
*
style_name
;
WCHAR
*
full_name
;
WCHAR
*
file
;
void
*
data_ptr
;
SIZE_T
data_size
;
UINT
face_index
;
FONTSIGNATURE
fs
;
DWORD
ntmFlags
;
DWORD
version
;
DWORD
flags
;
/* ADDFONT flags */
BOOL
scalable
;
struct
bitmap_font_size
size
;
/* set if face is a bitmap */
struct
gdi_font_family
*
family
;
struct
gdi_font_enum_data
*
cached_enum_data
;
};
struct
gdi_font
{
struct
list
entry
;
...
...
@@ -413,6 +449,9 @@ extern struct gdi_font_family *create_family( const WCHAR *name, const WCHAR *se
extern
void
release_family
(
struct
gdi_font_family
*
family
)
DECLSPEC_HIDDEN
;
extern
struct
gdi_font_family
*
find_family_from_name
(
const
WCHAR
*
name
)
DECLSPEC_HIDDEN
;
extern
struct
gdi_font_family
*
find_family_from_any_name
(
const
WCHAR
*
name
)
DECLSPEC_HIDDEN
;
extern
struct
gdi_font_face
*
create_face
(
const
WCHAR
*
style
,
const
WCHAR
*
fullname
,
const
WCHAR
*
file
,
UINT
index
,
FONTSIGNATURE
fs
,
DWORD
ntmflags
,
DWORD
version
,
DWORD
flags
,
const
struct
bitmap_font_size
*
size
)
DECLSPEC_HIDDEN
;
extern
struct
gdi_font
*
alloc_gdi_font
(
const
WCHAR
*
file
,
void
*
data_ptr
,
SIZE_T
data_size
)
DECLSPEC_HIDDEN
;
extern
void
free_gdi_font
(
struct
gdi_font
*
font
)
DECLSPEC_HIDDEN
;
...
...
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