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
da705e5e
Commit
da705e5e
authored
May 24, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Update with latest DirectWrite API additions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cf3362af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
360 additions
and
16 deletions
+360
-16
dwrite_3.idl
include/dwrite_3.idl
+360
-16
No files found.
include/dwrite_3.idl
View file @
da705e5e
...
@@ -19,10 +19,12 @@
...
@@ -19,10 +19,12 @@
import
"dwrite_2.idl"
;
import
"dwrite_2.idl"
;
interface
IDWriteFontFaceReference
;
interface
IDWriteFontFaceReference
;
interface
IDWriteFontFaceReference1
;
interface
IDWriteFontFace3
;
interface
IDWriteFontFace3
;
interface
IDWriteFontSet
;
interface
IDWriteFontSet
;
interface
IDWriteFontDownloadQueue
;
interface
IDWriteFontDownloadQueue
;
interface
IDWriteFontResource
;
interface
IDWriteFontFace5
;
interface
IDWriteFontList2
;
cpp_quote
(
"#ifndef _WINGDI_"
)
cpp_quote
(
"#ifndef _WINGDI_"
)
/*
already
defined
in
wingdi
.
h
but
needed
for
WIDL
*/
/*
already
defined
in
wingdi
.
h
but
needed
for
WIDL
*/
...
@@ -73,6 +75,47 @@ typedef struct DWRITE_FONT_PROPERTY
...
@@ -73,6 +75,47 @@ typedef struct DWRITE_FONT_PROPERTY
WCHAR
const
*
localeName
;
WCHAR
const
*
localeName
;
}
DWRITE_FONT_PROPERTY
;
}
DWRITE_FONT_PROPERTY
;
typedef
enum
DWRITE_FONT_AXIS_TAG
{
DWRITE_FONT_AXIS_TAG_WEIGHT
=
0
x74686777
,
/*
'wght'
*/
DWRITE_FONT_AXIS_TAG_WIDTH
=
0
x68746477
,
/*
'wdth'
*/
DWRITE_FONT_AXIS_TAG_SLANT
=
0
x746e6c73
,
/*
'slnt'
*/
DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE
=
0
x7a73706f
,
/*
'opsz'
*/
DWRITE_FONT_AXIS_TAG_ITALIC
=
0
x6c617469
,
/*
'ital'
*/
}
DWRITE_FONT_AXIS_TAG
;
typedef
struct
DWRITE_FONT_AXIS_VALUE
{
DWRITE_FONT_AXIS_TAG
axisTag
;
FLOAT
value
;
}
DWRITE_FONT_AXIS_VALUE
;
typedef
struct
DWRITE_FONT_AXIS_RANGE
{
DWRITE_FONT_AXIS_TAG
axisTag
;
FLOAT
minValue
;
FLOAT
maxValue
;
}
DWRITE_FONT_AXIS_RANGE
;
typedef
enum
DWRITE_AUTOMATIC_FONT_AXES
{
DWRITE_AUTOMATIC_FONT_AXES_NONE
,
DWRITE_AUTOMATIC_FONT_AXES_OPTICAL_SIZE
,
}
DWRITE_AUTOMATIC_FONT_AXES
;
typedef
enum
DWRITE_FONT_AXIS_ATTRIBUTES
{
DWRITE_FONT_AXIS_ATTRIBUTES_NONE
,
DWRITE_FONT_AXIS_ATTRIBUTES_VARIABLE
,
DWRITE_FONT_AXIS_ATTRIBUTES_HIDDEN
,
}
DWRITE_FONT_AXIS_ATTRIBUTES
;
typedef
enum
DWRITE_FONT_FAMILY_MODEL
{
DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC
,
DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE
,
}
DWRITE_FONT_FAMILY_MODEL
;
[
[
local
,
local
,
object
,
object
,
...
@@ -148,6 +191,109 @@ interface IDWriteFontSet : IUnknown
...
@@ -148,6 +191,109 @@ interface IDWriteFontSet : IUnknown
[
[
local
,
local
,
object
,
object
,
uuid
(
1
f803a76
-
6871
-
48
e8
-
987
f
-
b975551c50f2
)
]
interface
IDWriteFontResource
:
IUnknown
{
HRESULT
GetFontFile
(
IDWriteFontFile
**
fontfile
)
;
UINT32
GetFontFaceIndex
()
;
UINT32
GetFontAxisCount
()
;
HRESULT
GetDefaultFontAxisValues
(
DWRITE_FONT_AXIS_VALUE
const
*
values
,
UINT32
num_values
)
;
HRESULT
GetFontAxisRanges
(
DWRITE_FONT_AXIS_RANGE
const
*
ranges
,
UINT32
num_ranges
)
;
DWRITE_FONT_AXIS_ATTRIBUTES
GetFontAxisAttributes
(
UINT32
axis
)
;
HRESULT
GetAxisNames
(
UINT32
axis
,
IDWriteLocalizedStrings
**
names
)
;
UINT32
GetAxisValueNameCount
(
UINT32
axis
)
;
HRESULT
GetAxisValueNames
(
UINT32
axis
,
UINT32
axis_value
,
DWRITE_FONT_AXIS_RANGE
*
axis_range
,
IDWriteLocalizedStrings
**
names
)
;
BOOL
HasVariations
()
;
HRESULT
CreateFontFace
(
DWRITE_FONT_SIMULATIONS
simulations
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
IDWriteFontFace5
**
fontface
)
;
HRESULT
CreateFontFaceReference
(
DWRITE_FONT_SIMULATIONS
simulations
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
IDWriteFontFaceReference1
**
reference
)
;
}
[
local
,
object
,
uuid
(
7
e9fda85
-
6
c92
-
4053
-
bc47
-
7
ae3530db4d3
)
]
interface
IDWriteFontSet1
:
IDWriteFontSet
{
HRESULT
GetMatchingFonts
(
DWRITE_FONT_PROPERTY
const
*
property
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
IDWriteFontSet1
**
fontset
)
;
HRESULT
GetFirstFontResources
(
IDWriteFontSet1
**
fontset
)
;
HRESULT
GetFilteredFonts__
(
UINT32
const
*
indices
,
UINT32
num_indices
,
IDWriteFontSet1
**
fontset
)
;
HRESULT
GetFilteredFonts_
(
DWRITE_FONT_AXIS_RANGE
const
*
axis_ranges
,
UINT32
num_ranges
,
BOOL
select_any_range
,
IDWriteFontSet1
**
fontset
)
;
HRESULT
GetFilteredFonts
(
DWRITE_FONT_PROPERTY
const
*
props
,
UINT32
num_properties
,
BOOL
select_any_property
,
IDWriteFontSet1
**
fontset
)
;
HRESULT
GetFilteredFontIndices_
(
DWRITE_FONT_AXIS_RANGE
const
*
ranges
,
UINT32
num_ranges
,
BOOL
select_any_range
,
UINT32
*
indices
,
UINT32
num_indices
,
UINT32
*
actual_num_indices
)
;
HRESULT
GetFilteredFontIndices
(
DWRITE_FONT_PROPERTY
const
*
props
,
UINT32
num_properties
,
BOOL
select_any_range
,
UINT32
*
indices
,
UINT32
num_indices
,
UINT32
*
actual_num_indices
)
;
HRESULT
GetFontAxisRanges_
(
UINT32
font_index
,
DWRITE_FONT_AXIS_RANGE
*
axis_ranges
,
UINT32
num_ranges
,
UINT32
*
actual_num_ranges
)
;
HRESULT
GetFontAxisRanges
(
DWRITE_FONT_AXIS_RANGE
*
axis_ranges
,
UINT32
num_ranges
,
UINT32
*
actual_num_ranges
)
;
HRESULT
GetFontFaceReference
(
UINT32
index
,
IDWriteFontFaceReference1
**
referece
)
;
HRESULT
CreateFontResource
(
UINT32
index
,
IDWriteFontResource
**
resource
)
;
HRESULT
CreateFontFace
(
UINT32
index
,
IDWriteFontFace5
**
fontface
)
;
DWRITE_LOCALITY
GetFontLocality
(
UINT32
index
)
;
}
[
local
,
object
,
uuid
(
29748
ed6
-
8
c9c
-
4
a6a
-
be0b
-
d912e8538944
)
uuid
(
29748
ed6
-
8
c9c
-
4
a6a
-
be0b
-
d912e8538944
)
]
]
interface
IDWriteFont3
:
IDWriteFont2
interface
IDWriteFont3
:
IDWriteFont2
...
@@ -174,6 +320,20 @@ interface IDWriteFontFamily1 : IDWriteFontFamily
...
@@ -174,6 +320,20 @@ interface IDWriteFontFamily1 : IDWriteFontFamily
[
[
local
,
local
,
object
,
object
,
uuid
(
3
ed49e77
-
a398
-
4261
-
b9cf
-
c126c2131ef3
)
]
interface
IDWriteFontFamily2
:
IDWriteFontFamily1
{
HRESULT
GetMatchingFonts
(
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
IDWriteFontList2
**
fontlist
)
;
HRESULT
GetFontSet
(
IDWriteFontSet1
**
fontset
)
;
}
[
local
,
object
,
uuid
(
53585141
-
d9f8
-
4095
-
8321
-
d73cf6bd116c
)
uuid
(
53585141
-
d9f8
-
4095
-
8321
-
d73cf6bd116c
)
]
]
interface
IDWriteFontCollection1
:
IDWriteFontCollection
interface
IDWriteFontCollection1
:
IDWriteFontCollection
...
@@ -185,6 +345,35 @@ interface IDWriteFontCollection1 : IDWriteFontCollection
...
@@ -185,6 +345,35 @@ interface IDWriteFontCollection1 : IDWriteFontCollection
[
[
local
,
local
,
object
,
object
,
uuid
(
514039
c6
-
4617
-
4064
-
bf8b
-
92
ea83e506e0
)
]
interface
IDWriteFontCollection2
:
IDWriteFontCollection1
{
HRESULT
GetFontFamily
(
UINT32
index
,
IDWriteFontFamily2
**
family
)
;
HRESULT
GetMatchingFonts
(
const
WCHAR
*
familyname
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
IDWriteFontList2
**
fontlist
)
;
DWRITE_FONT_FAMILY_MODEL
GetFontFamilyModel
()
;
HRESULT
GetFontSet
(
IDWriteFontSet1
**
fontset
)
;
}
[
local
,
object
,
uuid
(
a4d055a6
-
f9e3
-
4
e25
-
93b7
-
9
e309f3af8e9
)
]
interface
IDWriteFontCollection3
:
IDWriteFontCollection2
{
HANDLE
GetExiprationEvent
()
;
}
[
local
,
object
,
uuid
(
5
e7fa7ca
-
dde3
-
424
c
-
89
f0
-
9
fcd6fed58cd
)
uuid
(
5
e7fa7ca
-
dde3
-
424
c
-
89
f0
-
9
fcd6fed58cd
)
]
]
interface
IDWriteFontFaceReference
:
IUnknown
interface
IDWriteFontFaceReference
:
IUnknown
...
@@ -209,6 +398,20 @@ interface IDWriteFontFaceReference : IUnknown
...
@@ -209,6 +398,20 @@ interface IDWriteFontFaceReference : IUnknown
[
[
local
,
local
,
object
,
object
,
uuid
(
c081fe77
-
2
fd1
-
41
ac
-
a5a3
-
34983
c4ba61a
)
]
interface
IDWriteFontFaceReference1
:
IDWriteFontFaceReference
{
HRESULT
CreateFontFace
(
IDWriteFontFace5
**
fontface
)
;
UINT32
GetFontAxisValueCount
()
;
HRESULT
GetFontAxisValues
(
DWRITE_FONT_AXIS_VALUE
*
values
,
UINT32
num_values
)
;
}
[
local
,
object
,
uuid
(
da20d8ef
-
812
a
-
4
c43
-
9802
-
62
ec4abd7ade
)
uuid
(
da20d8ef
-
812
a
-
4
c43
-
9802
-
62
ec4abd7ade
)
]
]
interface
IDWriteFontList1
:
IDWriteFontList
interface
IDWriteFontList1
:
IDWriteFontList
...
@@ -221,6 +424,26 @@ interface IDWriteFontList1 : IDWriteFontList
...
@@ -221,6 +424,26 @@ interface IDWriteFontList1 : IDWriteFontList
[
[
local
,
local
,
object
,
object
,
uuid
(
c0763a34
-
77
af
-
445
a
-
b735
-
08
c37b0a5bf5
)
]
interface
IDWriteFontList2
:
IDWriteFontList1
{
HRESULT
GetFontSet
(
IDWriteFontSet1
**
fontset
)
;
}
[
local
,
object
,
uuid
(
dc7ead19
-
e54c
-
43
af
-
b2da
-
4
e2b79ba3f7f
)
]
interface
IDWriteFontSet2
:
IDWriteFontSet1
{
HANDLE
GetExpirationEvent
()
;
}
[
local
,
object
,
uuid
(
d37d7598
-
09b
e
-
4222
-
a236
-
2081341
cc1f2
)
uuid
(
d37d7598
-
09b
e
-
4222
-
a236
-
2081341
cc1f2
)
]
]
interface
IDWriteFontFace3
:
IDWriteFontFace2
interface
IDWriteFontFace3
:
IDWriteFontFace2
...
@@ -298,6 +521,24 @@ interface IDWriteTextFormat2 : IDWriteTextFormat1
...
@@ -298,6 +521,24 @@ interface IDWriteTextFormat2 : IDWriteTextFormat1
[
[
local
,
local
,
object
,
object
,
uuid
(
6
d3b5641
-
e550
-
430
d
-
a85b
-
b7bf48a93427
)
]
interface
IDWriteTextFormat3
:
IDWriteTextFormat2
{
HRESULT
SetFontAxisValues
(
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
)
;
UINT32
GetFontAxisValueCount
()
;
HRESULT
GetFontAxisValues
(
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
)
;
DWRITE_AUTOMATIC_FONT_AXES
GetAutomaticFontAxes
()
;
HRESULT
SetAutomaticFontAxes
(
DWRITE_AUTOMATIC_FONT_AXES
axes
)
;
}
[
local
,
object
,
uuid
(
07
ddcd52
-020e-4
de8
-
ac33
-
6
c953d83f92d
)
uuid
(
07
ddcd52
-020e-4
de8
-
ac33
-
6
c953d83f92d
)
]
]
interface
IDWriteTextLayout3
:
IDWriteTextLayout2
interface
IDWriteTextLayout3
:
IDWriteTextLayout2
...
@@ -311,6 +552,47 @@ interface IDWriteTextLayout3 : IDWriteTextLayout2
...
@@ -311,6 +552,47 @@ interface IDWriteTextLayout3 : IDWriteTextLayout2
[
[
local
,
local
,
object
,
object
,
uuid
(
05
a9bf42
-
223
f
-
4441
-
b5fb
-
8263685
f55e9
)
]
interface
IDWriteTextLayout4
:
IDWriteTextLayout3
{
HRESULT
SetFontAxisValues
(
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
DWRITE_TEXT_RANGE
range
)
;
UINT32
GetFontAxisValueCount
(
UINT32
pos
)
;
HRESULT
GetFontAxisValues
(
UINT32
pos
,
DWRITE_FONT_AXIS_VALUE
*
values
,
UINT32
num_values
,
DWRITE_TEXT_RANGE
*
range
)
;
DWRITE_AUTOMATIC_FONT_AXES
GetAutomaticFontAxes
()
;
HRESULT
SetAutomaticFontAxes
(
DWRITE_AUTOMATIC_FONT_AXES
axes
)
;
}
[
local
,
object
,
uuid
(
2397599
d
-
dd0d
-
4681
-
bd6a
-
f4f31eaade77
)
]
interface
IDWriteFontFallback1
:
IDWriteFontFallback
{
HRESULT
MapCharacters
(
IDWriteTextAnalysisSource
*
source
,
UINT32
pos
,
UINT32
length
,
IDWriteFontCollection
*
base_collection
,
const
WCHAR
*
familyname
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
UINT32
*
mapped_length
,
FLOAT
*
scale
,
IDWriteFontFace5
**
fontface
)
;
}
[
local
,
object
,
uuid
(
4556b
e70
-
3
abd
-
4
f70
-
90b
e
-
421780
a6f515
)
uuid
(
4556b
e70
-
3
abd
-
4
f70
-
90b
e
-
421780
a6f515
)
]
]
interface
IDWriteGdiInterop1
:
IDWriteGdiInterop
interface
IDWriteGdiInterop1
:
IDWriteGdiInterop
...
@@ -356,6 +638,26 @@ interface IDWriteFontSetBuilder1 : IDWriteFontSetBuilder
...
@@ -356,6 +638,26 @@ interface IDWriteFontSetBuilder1 : IDWriteFontSetBuilder
[
[
local
,
local
,
object
,
object
,
uuid
(
ee5ba612
-
b131
-
463
c
-
8
f4f
-
3189b9401
e45
)
]
interface
IDWriteFontSetBuilder2
:
IDWriteFontSetBuilder1
{
HRESULT
AddFont
(
IDWriteFontFile
*
fontfile
,
UINT32
face_index
,
DWRITE_FONT_SIMULATIONS
simulations
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_values
,
DWRITE_FONT_AXIS_RANGE
const
*
axis_ranges
,
UINT32
num_ranges
,
DWRITE_FONT_PROPERTY
const
*
props
,
UINT32
num_properies
)
;
HRESULT
AddFontFile
(
const
WCHAR
*
filepath
)
;
}
[
local
,
object
,
uuid
(
9
a1b41c3
-
d3bb
-
466
a
-
87
fc
-
fe67556a3b65
)
uuid
(
9
a1b41c3
-
d3bb
-
466
a
-
87
fc
-
fe67556a3b65
)
]
]
interface
IDWriteFactory3
:
IDWriteFactory2
interface
IDWriteFactory3
:
IDWriteFactory2
...
@@ -458,21 +760,6 @@ interface IDWriteFontFace4 : IDWriteFontFace3
...
@@ -458,21 +760,6 @@ interface IDWriteFontFace4 : IDWriteFontFace3
void
ReleaseGlyphImageData
(
void
*
context
)
;
void
ReleaseGlyphImageData
(
void
*
context
)
;
}
}
typedef
enum
DWRITE_FONT_AXIS_TAG
{
DWRITE_FONT_AXIS_TAG_WEIGHT
=
0
x74686777
,
/*
'wght'
*/
DWRITE_FONT_AXIS_TAG_WIDTH
=
0
x68746477
,
/*
'wdth'
*/
DWRITE_FONT_AXIS_TAG_SLANT
=
0
x746e6c73
,
/*
'slnt'
*/
DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE
=
0
x7a73706f
,
/*
'opsz'
*/
DWRITE_FONT_AXIS_TAG_ITALIC
=
0
x6c617469
,
/*
'ital'
*/
}
DWRITE_FONT_AXIS_TAG
;
typedef
struct
DWRITE_FONT_AXIS_VALUE
{
DWRITE_FONT_AXIS_TAG
axisTag
;
FLOAT
value
;
}
DWRITE_FONT_AXIS_VALUE
;
[
[
local
,
local
,
object
,
object
,
...
@@ -635,3 +922,60 @@ interface IDWriteFactory5 : IDWriteFactory4
...
@@ -635,3 +922,60 @@ interface IDWriteFactory5 : IDWriteFactory4
UINT32
data_size
,
UINT32
data_size
,
IDWriteFontFileStream
**
stream
)
;
IDWriteFontFileStream
**
stream
)
;
}
}
[
local
,
object
,
uuid
(
f3744d80
-
21
f7
-
42
eb
-
b35d
-
995b
c72fc223
)
]
interface
IDWriteFactory6
:
IDWriteFactory5
{
HRESULT
CreateFontFaceReference
(
IDWriteFontFile
*
file
,
UINT32
face_index
,
DWRITE_FONT_SIMULATIONS
simulations
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_axis
,
IDWriteFontFaceReference1
**
face_ref
)
;
HRESULT
CreateFontResource
(
IDWriteFontFile
*
file
,
UINT32
face_index
,
IDWriteFontResource
**
resource
)
;
HRESULT
GetSystemFontSet
(
BOOL
include_downloadable
,
IDWriteFontSet1
**
fontset
)
;
HRESULT
GetSystemFontCollection
(
BOOL
include_downloadable
,
DWRITE_FONT_FAMILY_MODEL
family_model
,
IDWriteFontCollection2
**
collection
)
;
HRESULT
CreateFontCollectionFromFontSet
(
IDWriteFontSet
*
fontset
,
DWRITE_FONT_FAMILY_MODEL
family_model
,
IDWriteFontCollection2
**
collection
)
;
HRESULT
CreateFontSetBuilder
(
IDWriteFontSetBuilder2
**
builder
)
;
HRESULT
CreateTextFormat
(
const
WCHAR
*
familyname
,
IDWriteFontCollection
*
collection
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
num_axis
,
FLOAT
fontsize
,
const
WCHAR
*
localename
,
IDWriteTextFormat3
**
format
)
;
}
[
local
,
object
,
uuid
(
35
d0e0b3
-
9076
-
4
d2e
-
a016
-
a91b568a06b4
)
]
interface
IDWriteFactory7
:
IDWriteFactory6
{
HRESULT
GetSystemFontSet
(
BOOL
include_downloadable
,
IDWriteFontSet2
**
fontset
)
;
HRESULT
GetSystemFontCollection
(
BOOL
include_downloadable
,
DWRITE_FONT_FAMILY_MODEL
family_model
,
IDWriteFontCollection3
**
collection
)
;
}
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