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
7e079b06
Commit
7e079b06
authored
Nov 15, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Use vertical orientation table to determine rotation.
parent
ff0717d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
45 deletions
+11
-45
text.c
dlls/wineps.drv/text.c
+11
-45
No files found.
dlls/wineps.drv/text.c
View file @
7e079b06
...
@@ -40,54 +40,20 @@ static BOOL PSDRV_Text(PHYSDEV dev, INT x, INT y, UINT flags,
...
@@ -40,54 +40,20 @@ static BOOL PSDRV_Text(PHYSDEV dev, INT x, INT y, UINT flags,
LPCWSTR
str
,
UINT
count
,
LPCWSTR
str
,
UINT
count
,
BOOL
bDrawBackground
,
const
INT
*
lpDx
);
BOOL
bDrawBackground
,
const
INT
*
lpDx
);
static
const
struct
{
WCHAR
lower
;
WCHAR
upper
;}
unrotate_ranges
[]
=
extern
const
unsigned
short
vertical_orientation_table
[];
{
{
0x0000
,
0x10FF
},
/* Hangul Jamo */
{
0x1200
,
0x17FF
},
/* Mongolian */
{
0x18B0
,
0x1FFF
},
/* General Punctuation */
{
0x2070
,
0x209F
},
/* Currency Symbols */
/* Combining Diacritical Marks for Symbols */
/* Letterlike Symbols */
{
0x2150
,
0x245F
},
/* Enclosed Alphanumerics */
{
0x2500
,
0x259F
},
/* Geometric Shapes */
/* Miscellaneous Symbols */
/* Dingbats */
/* Miscellaneous Mathematical Symbols-A */
/* Supplemental Arrows-A */
{
0x2800
,
0x2E7F
},
/* East Asian scripts and symbols */
{
0xA000
,
0xABFF
},
/* Hangul Syllables */
/* Hangul Jamo Extended-B */
{
0xD800
,
0xDFFF
},
/* Private Use Area */
/* CJK Compatibility Ideographs */
{
0xFB00
,
0xFE0F
},
/* Vertical Forms */
/* Combining Half Marks */
/* CJK Compatibility Forms */
{
0xFE50
,
0xFEFF
},
/* Halfwidth and Fullwidth Forms */
{
0xFFEF
,
0xFFFF
},
};
static
BOOL
check_unicode_tategaki
(
WCHAR
uchar
)
static
BOOL
check_unicode_tategaki
(
WCHAR
uchar
)
{
{
int
i
;
unsigned
short
orientation
=
vertical_orientation_table
[
vertical_orientation_table
[
vertical_orientation_table
[
uchar
>>
8
]
+
((
uchar
>>
4
)
&
0x0f
)]
+
(
uchar
&
0xf
)];
for
(
i
=
0
;;
i
++
)
{
/* Type: U or Type: Tu */
if
(
uchar
<
unrotate_ranges
[
i
].
lower
)
/* TODO Type: Tr, Normally the logic for Tr would be that if
return
TRUE
;
Typographical substitution occurs, then do not rotate. However
we have no facility at present to determine if GetGlyphIndices is
if
(
uchar
>=
unrotate_ranges
[
i
].
lower
&&
uchar
<=
unrotate_ranges
[
i
].
upper
)
successfully performing substitutions (well formed font) or not.
return
FALSE
;
Thus we are erroring on the side of the font being well formed,
}
doing typographical substitution, and so we are not doing rotation */
return
(
orientation
==
1
||
orientation
==
2
||
orientation
==
3
);
}
}
static
Run
*
build_vertical_runs
(
PHYSDEV
dev
,
UINT
flags
,
LPCWSTR
str
,
UINT
count
,
INT
*
run_count
)
static
Run
*
build_vertical_runs
(
PHYSDEV
dev
,
UINT
flags
,
LPCWSTR
str
,
UINT
count
,
INT
*
run_count
)
...
...
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