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
ec9f7550
Commit
ec9f7550
authored
May 02, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
May 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: GetGlyphOutline needs to look at linked fonts as well.
parent
07a7079e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
freetype.c
dlls/gdi32/freetype.c
+8
-4
No files found.
dlls/gdi32/freetype.c
View file @
ec9f7550
...
...
@@ -439,6 +439,7 @@ static BOOL have_installed_roman_font = FALSE; /* CreateFontInstance will fail i
static
const
WCHAR
font_mutex_nameW
[]
=
{
'_'
,
'_'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'F'
,
'O'
,
'N'
,
'T'
,
'_'
,
'M'
,
'U'
,
'T'
,
'E'
,
'X'
,
'_'
,
'_'
,
'\0'
};
static
BOOL
get_glyph_index_linked
(
GdiFont
*
font
,
UINT
c
,
GdiFont
**
linked_font
,
FT_UInt
*
glyph
);
/****************************************
* Notes on .fon files
...
...
@@ -3354,12 +3355,13 @@ DWORD WineEngGetGlyphIndices(GdiFont *font, LPCWSTR lpstr, INT count,
* question rather than an HDC.
*
*/
DWORD
WineEngGetGlyphOutline
(
GdiFont
*
font
,
UINT
glyph
,
UINT
format
,
DWORD
WineEngGetGlyphOutline
(
GdiFont
*
incoming_
font
,
UINT
glyph
,
UINT
format
,
LPGLYPHMETRICS
lpgm
,
DWORD
buflen
,
LPVOID
buf
,
const
MAT2
*
lpmat
)
{
static
const
FT_Matrix
identityMat
=
{(
1
<<
16
),
0
,
0
,
(
1
<<
16
)};
FT_Face
ft_face
=
font
->
ft_face
;
FT_Face
ft_face
=
incoming_font
->
ft_face
;
GdiFont
*
font
=
incoming_font
;
FT_UInt
glyph_index
;
DWORD
width
,
height
,
pitch
,
needed
=
0
;
FT_Bitmap
ft_bitmap
;
...
...
@@ -3378,8 +3380,10 @@ DWORD WineEngGetGlyphOutline(GdiFont *font, UINT glyph, UINT format,
if
(
format
&
GGO_GLYPH_INDEX
)
{
glyph_index
=
glyph
;
format
&=
~
GGO_GLYPH_INDEX
;
}
else
glyph_index
=
get_glyph_index
(
font
,
glyph
);
}
else
{
get_glyph_index_linked
(
incoming_font
,
glyph
,
&
font
,
&
glyph_index
);
ft_face
=
font
->
ft_face
;
}
if
(
glyph_index
>=
font
->
gmsize
)
{
font
->
gmsize
=
(
glyph_index
/
INIT_GM_SIZE
+
1
)
*
INIT_GM_SIZE
;
...
...
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