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
8bf8021f
Commit
8bf8021f
authored
Oct 23, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
Oct 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ExtTextOutW with symbol fonts works with chars in the ranges
0x0000 -- 0x00ff and 0xf000 -- 0xf0ff and not, for example, with chars in the Unicode Greek range.
parent
f3d96222
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
4 deletions
+38
-4
codepage.c
graphics/x11drv/codepage.c
+33
-0
xfont.c
graphics/x11drv/xfont.c
+2
-2
x11font.h
include/x11font.h
+1
-0
text.c
objects/text.c
+2
-2
No files found.
graphics/x11drv/codepage.c
View file @
8bf8021f
...
...
@@ -364,6 +364,30 @@ static XChar2b* X11DRV_unicode_to_char2b_cp950( fontObject* pfo,
return
str2b
;
}
static
XChar2b
*
X11DRV_unicode_to_char2b_symbol
(
fontObject
*
pfo
,
LPCWSTR
lpwstr
,
UINT
count
)
{
XChar2b
*
str2b
;
UINT
i
;
char
ch
=
pfo
->
fs
->
default_char
;
if
(
!
(
str2b
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
XChar2b
)
)))
return
NULL
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
str2b
[
i
].
byte1
=
0
;
if
(
lpwstr
[
i
]
>=
0xf000
&&
lpwstr
[
i
]
<
0xf100
)
str2b
[
i
].
byte2
=
lpwstr
[
i
]
-
0xf000
;
else
if
(
lpwstr
[
i
]
<
0x100
)
str2b
[
i
].
byte2
=
lpwstr
[
i
];
else
str2b
[
i
].
byte2
=
ch
;
}
return
str2b
;
}
static
void
X11DRV_DrawString_normal
(
fontObject
*
pfo
,
Display
*
pdisp
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
...
...
@@ -700,4 +724,13 @@ const X11DRV_CP X11DRV_cptable[X11DRV_CPTABLE_COUNT] =
X11DRV_TextExtents_dbcs_2fonts
,
X11DRV_GetTextMetricsA_cp932
,
},
{
/* SYMBOL */
X11DRV_enum_subfont_charset_normal
,
X11DRV_unicode_to_char2b_symbol
,
X11DRV_DrawString_normal
,
X11DRV_TextWidth_normal
,
X11DRV_DrawText_normal
,
X11DRV_TextExtents_normal
,
X11DRV_GetTextMetricsA_normal
,
}
};
graphics/x11drv/xfont.c
View file @
8bf8021f
...
...
@@ -141,8 +141,8 @@ static const SuffixCharset sufch_microsoft[] = {
{
"cp1255"
,
HEBREW_CHARSET
,
1255
,
X11DRV_CPTABLE_SBCS
},
{
"cp1256"
,
ARABIC_CHARSET
,
1256
,
X11DRV_CPTABLE_SBCS
},
{
"cp1257"
,
BALTIC_CHARSET
,
1257
,
X11DRV_CPTABLE_SBCS
},
{
"fontspecific"
,
SYMBOL_CHARSET
,
CP_SYMBOL
,
X11DRV_CPTABLE_S
BCS
},
{
"symbol"
,
SYMBOL_CHARSET
,
CP_SYMBOL
,
X11DRV_CPTABLE_S
BCS
},
{
"fontspecific"
,
SYMBOL_CHARSET
,
CP_SYMBOL
,
X11DRV_CPTABLE_S
YMBOL
},
{
"symbol"
,
SYMBOL_CHARSET
,
CP_SYMBOL
,
X11DRV_CPTABLE_S
YMBOL
},
{
NULL
,
ANSI_CHARSET
,
1252
,
X11DRV_CPTABLE_SBCS
}};
static
const
SuffixCharset
sufch_tcvn
[]
=
{
...
...
include/x11font.h
View file @
8bf8021f
...
...
@@ -80,6 +80,7 @@ enum X11DRV_CPTABLE
X11DRV_CPTABLE_CP936
,
X11DRV_CPTABLE_CP949
,
X11DRV_CPTABLE_CP950
,
X11DRV_CPTABLE_SYMBOL
,
X11DRV_CPTABLE_COUNT
};
...
...
objects/text.c
View file @
8bf8021f
...
...
@@ -43,8 +43,8 @@ LPWSTR FONT_mbtowc(HDC hdc, LPCSTR str, INT count, INT *plenW, UINT *pCP)
cp
=
csi
.
ciACP
;
else
{
switch
(
charset
)
{
case
SYMBOL_CHARSET
:
cp
=
CP_SYMBOL
;
case
SYMBOL_CHARSET
:
/* We don't want any translation here */
cp
=
GetACP
()
;
break
;
case
OEM_CHARSET
:
cp
=
GetOEMCP
();
...
...
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