Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8f0c45b5
Commit
8f0c45b5
authored
Oct 31, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Oct 31, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only select a bitmap font as a last resort if we can't find a font
with the correct facename.
parent
4b811d93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
freetype.c
dlls/gdi/freetype.c
+25
-8
No files found.
dlls/gdi/freetype.c
View file @
8f0c45b5
...
...
@@ -2071,7 +2071,7 @@ GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont)
{
GdiFont
ret
;
Face
*
face
,
*
best
;
Family
*
family
;
Family
*
family
,
*
last_resort_family
;
struct
list
*
family_elem_ptr
,
*
face_elem_ptr
;
INT
height
,
width
=
0
;
signed
int
diff
=
0
,
newdiff
;
...
...
@@ -2212,31 +2212,48 @@ GdiFont WineEngCreateFontInstance(DC *dc, HFONT hfont)
}
}
last_resort_family
=
NULL
;
LIST_FOR_EACH
(
family_elem_ptr
,
&
font_list
)
{
family
=
LIST_ENTRY
(
family_elem_ptr
,
Family
,
entry
);
LIST_FOR_EACH
(
face_elem_ptr
,
&
family
->
faces
)
{
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
if
(
csi
.
fs
.
fsCsb
[
0
]
&
(
face
->
fs
.
fsCsb
[
0
]
|
face
->
fs_links
.
fsCsb
[
0
]))
if
(
face
->
scalable
||
can_use_bitmap
)
if
(
csi
.
fs
.
fsCsb
[
0
]
&
(
face
->
fs
.
fsCsb
[
0
]
|
face
->
fs_links
.
fsCsb
[
0
]))
{
if
(
face
->
scalable
)
goto
found
;
if
(
can_use_bitmap
&&
!
last_resort_family
)
last_resort_family
=
family
;
}
}
}
if
(
last_resort_family
)
{
family
=
last_resort_family
;
csi
.
fs
.
fsCsb
[
0
]
=
0
;
goto
found
;
}
LIST_FOR_EACH
(
family_elem_ptr
,
&
font_list
)
{
family
=
LIST_ENTRY
(
family_elem_ptr
,
Family
,
entry
);
LIST_FOR_EACH
(
face_elem_ptr
,
&
family
->
faces
)
{
face
=
LIST_ENTRY
(
face_elem_ptr
,
Face
,
entry
);
if
(
face
->
scalable
||
can_use_bitmap
)
{
if
(
face
->
scalable
)
{
csi
.
fs
.
fsCsb
[
0
]
=
0
;
FIXME
(
"just using first face for now
\n
"
);
goto
found
;
}
if
(
can_use_bitmap
&&
!
last_resort_family
)
last_resort_family
=
family
;
}
}
FIXME
(
"can't find a single appropriate font - bailing
\n
"
);
free_font
(
ret
);
return
NULL
;
if
(
!
last_resort_family
)
{
FIXME
(
"can't find a single appropriate font - bailing
\n
"
);
free_font
(
ret
);
return
NULL
;
}
WARN
(
"could only find a bitmap font - this will probably look awful!
\n
"
);
family
=
last_resort_family
;
csi
.
fs
.
fsCsb
[
0
]
=
0
;
found:
it
=
lf
.
lfItalic
?
1
:
0
;
...
...
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