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
53385314
Commit
53385314
authored
Dec 20, 2011
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Dec 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Substitute glyph for vertical font only.
parent
69a26387
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
freetype.c
dlls/gdi32/freetype.c
+3
-1
font.c
dlls/gdi32/tests/font.c
+0
-1
No files found.
dlls/gdi32/freetype.c
View file @
53385314
...
...
@@ -269,6 +269,7 @@ typedef struct tagFace {
DWORD
ntmFlags
;
FT_Fixed
font_version
;
BOOL
scalable
;
BOOL
vertical
;
Bitmap_Size
size
;
/* set if face is a bitmap */
BOOL
external
;
/* TRUE if we should manually add this font to the registry */
struct
tagFamily
*
family
;
...
...
@@ -1619,6 +1620,7 @@ static void AddFaceToList(FT_Face ft_face, char *fake_family, const char *file,
if
(
face
->
ntmFlags
==
0
)
face
->
ntmFlags
=
NTM_REGULAR
;
face
->
font_version
=
pHeader
?
pHeader
->
Font_Revision
:
0
;
face
->
family
=
family
;
face
->
vertical
=
vertical
;
face
->
external
=
(
flags
&
ADDFONT_EXTERNAL_FONT
)
?
TRUE
:
FALSE
;
face
->
fs
=
fs
;
memset
(
&
face
->
fs_links
,
0
,
sizeof
(
face
->
fs_links
));
...
...
@@ -4248,7 +4250,7 @@ found_face:
ret
->
strikeout
=
lf
.
lfStrikeOut
?
0xff
:
0
;
create_child_font_list
(
ret
);
if
(
lf
.
lfFaceName
[
0
]
==
'@'
)
/* We need to try to load the GSUB table */
if
(
face
->
vertical
)
/* We need to try to load the GSUB table */
{
int
length
=
get_font_data
(
ret
,
GSUB_TAG
,
0
,
NULL
,
0
);
if
(
length
!=
GDI_ERROR
)
...
...
dlls/gdi32/tests/font.c
View file @
53385314
...
...
@@ -4126,7 +4126,6 @@ static void test_vertical_font(void)
check_vertical_font
(
"@WineTestVertical"
,
&
installed
,
&
selected
,
&
gm
);
ok
(
installed
,
"@WineTestVertical is not installed
\n
"
);
ok
(
selected
,
"@WineTestVertical is not selected
\n
"
);
todo_wine
ok
(
gm
.
gmBlackBoxX
>
gm
.
gmBlackBoxY
,
"gmBlackBoxX(%u) should be greater than gmBlackBoxY(%u) if horizontal
\n
"
,
gm
.
gmBlackBoxX
,
gm
.
gmBlackBoxY
);
...
...
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