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
3b1e8bf8
Commit
3b1e8bf8
authored
Oct 07, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use public macro to define OpenType tags.
parent
07dc8b66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
dwrite_private.h
dlls/dwrite/dwrite_private.h
+0
-4
font.c
dlls/dwrite/font.c
+4
-8
dwrite.idl
include/dwrite.idl
+6
-0
No files found.
dlls/dwrite/dwrite_private.h
View file @
3b1e8bf8
...
...
@@ -19,10 +19,6 @@
#include "wine/debug.h"
#include "wine/unicode.h"
#define DWRITE_MAKE_OPENTYPE_TAG(ch0, ch1, ch2, ch3) \
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24))
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
...
...
dlls/dwrite/font.c
View file @
3b1e8bf8
...
...
@@ -25,14 +25,10 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dwrite
);
#define MS_MAKE_TAG(ch0, ch1, ch2, ch3) \
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24))
#define MS_HEAD_TAG MS_MAKE_TAG('h','e','a','d')
#define MS_OS2_TAG MS_MAKE_TAG('O','S','/','2')
#define MS_POST_TAG MS_MAKE_TAG('p','o','s','t')
#define MS_CMAP_TAG MS_MAKE_TAG('c','m','a','p')
#define MS_HEAD_TAG DWRITE_MAKE_OPENTYPE_TAG('h','e','a','d')
#define MS_OS2_TAG DWRITE_MAKE_OPENTYPE_TAG('O','S','/','2')
#define MS_POST_TAG DWRITE_MAKE_OPENTYPE_TAG('p','o','s','t')
#define MS_CMAP_TAG DWRITE_MAKE_OPENTYPE_TAG('c','m','a','p')
struct
dwrite_fontface_data
{
LONG
ref
;
...
...
include/dwrite.idl
View file @
3b1e8bf8
...
...
@@ -222,6 +222,12 @@ typedef enum DWRITE_LINE_SPACING_METHOD
DWRITE_LINE_SPACING_METHOD_UNIFORM
}
DWRITE_LINE_SPACING_METHOD
;
cpp_quote
(
"#define DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d) ( \\"
)
cpp_quote
(
" ((UINT32)(UINT8)(d) << 24) | \\"
)
cpp_quote
(
" ((UINT32)(UINT8)(c) << 16) | \\"
)
cpp_quote
(
" ((UINT32)(UINT8)(b) << 8) | \\"
)
cpp_quote
(
" (UINT32)(UINT8)(a))"
)
typedef
enum
DWRITE_FONT_FEATURE_TAG
{
DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS
=
0
x63726661
,
/*
'afrc'
*/
...
...
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