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
dc241a83
Commit
dc241a83
authored
Jul 31, 2013
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jul 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a helper function to get bitmap size.
parent
01280cff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
freetype.c
dlls/gdi32/freetype.c
+14
-15
No files found.
dlls/gdi32/freetype.c
View file @
dc241a83
...
...
@@ -1895,15 +1895,23 @@ static inline DWORD get_ntm_flags( FT_Face ft_face )
return
flags
;
}
static
inline
int
get_bitmap_internal_leading
(
FT_Face
ft_fac
e
)
static
inline
void
get_bitmap_size
(
FT_Face
ft_face
,
Bitmap_Size
*
face_siz
e
)
{
int
internal_leading
=
0
;
My_FT_Bitmap_Size
*
size
;
FT_WinFNT_HeaderRec
winfnt_header
;
if
(
!
pFT_Get_WinFNT_Header
(
ft_face
,
&
winfnt_header
))
internal_leading
=
winfnt_header
.
internal_leading
;
size
=
(
My_FT_Bitmap_Size
*
)
ft_face
->
available_sizes
;
TRACE
(
"Adding bitmap size h %d w %d size %ld x_ppem %ld y_ppem %ld
\n
"
,
size
->
height
,
size
->
width
,
size
->
size
>>
6
,
size
->
x_ppem
>>
6
,
size
->
y_ppem
>>
6
);
face_size
->
height
=
size
->
height
;
face_size
->
width
=
size
->
width
;
face_size
->
size
=
size
->
size
;
face_size
->
x_ppem
=
size
->
x_ppem
;
face_size
->
y_ppem
=
size
->
y_ppem
;
return
internal_leading
;
if
(
!
pFT_Get_WinFNT_Header
(
ft_face
,
&
winfnt_header
))
face_size
->
internal_leading
=
winfnt_header
.
internal_leading
;
}
static
inline
void
get_fontsig
(
FT_Face
ft_face
,
FONTSIGNATURE
*
fs
)
...
...
@@ -1974,7 +1982,6 @@ static Face *create_face( FT_Face ft_face, FT_Long face_index, const char *file,
{
struct
stat
st
;
Face
*
face
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
face
)
);
My_FT_Bitmap_Size
*
size
=
(
My_FT_Bitmap_Size
*
)
ft_face
->
available_sizes
;
face
->
refcount
=
1
;
face
->
StyleName
=
get_face_name
(
ft_face
,
TT_NAME_ID_FONT_SUBFAMILY
,
GetSystemDefaultLangID
()
);
...
...
@@ -2016,15 +2023,7 @@ static Face *create_face( FT_Face ft_face, FT_Long face_index, const char *file,
}
else
{
TRACE
(
"Adding bitmap size h %d w %d size %ld x_ppem %ld y_ppem %ld
\n
"
,
size
->
height
,
size
->
width
,
size
->
size
>>
6
,
size
->
x_ppem
>>
6
,
size
->
y_ppem
>>
6
);
face
->
size
.
height
=
size
->
height
;
face
->
size
.
width
=
size
->
width
;
face
->
size
.
size
=
size
->
size
;
face
->
size
.
x_ppem
=
size
->
x_ppem
;
face
->
size
.
y_ppem
=
size
->
y_ppem
;
face
->
size
.
internal_leading
=
get_bitmap_internal_leading
(
ft_face
);
get_bitmap_size
(
ft_face
,
&
face
->
size
);
face
->
scalable
=
FALSE
;
}
...
...
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