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
b70154a5
Commit
b70154a5
authored
Nov 28, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Remove DECLSPEC_HIDDEN usage.
parent
7b1fe26b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
127 deletions
+127
-127
analyzer.c
dlls/dwrite/analyzer.c
+3
-3
bidi.c
dlls/dwrite/bidi.c
+2
-2
dwrite_private.h
dlls/dwrite/dwrite_private.h
+120
-120
opentype.c
dlls/dwrite/opentype.c
+1
-1
arabic.c
dlls/dwrite/shapers/arabic.c
+1
-1
No files found.
dlls/dwrite/analyzer.c
View file @
b70154a5
...
...
@@ -28,9 +28,9 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dwrite
);
extern
const
unsigned
short
wine_linebreak_table
[]
DECLSPEC_HIDDEN
;
extern
const
unsigned
short
wine_scripts_table
[]
DECLSPEC_HIDDEN
;
extern
const
unsigned
short
bidi_direction_table
[]
DECLSPEC_HIDDEN
;
extern
const
unsigned
short
wine_linebreak_table
[];
extern
const
unsigned
short
wine_scripts_table
[];
extern
const
unsigned
short
bidi_direction_table
[];
/* Number of characters needed for LOCALE_SNATIVEDIGITS */
#define NATIVE_DIGITS_LEN 11
...
...
dlls/dwrite/bidi.c
View file @
b70154a5
...
...
@@ -51,8 +51,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
bidi
);
extern
const
unsigned
short
bidi_bracket_table
[]
DECLSPEC_HIDDEN
;
extern
const
unsigned
short
bidi_direction_table
[]
DECLSPEC_HIDDEN
;
extern
const
unsigned
short
bidi_bracket_table
[];
extern
const
unsigned
short
bidi_direction_table
[];
#define ASSERT(x) do { if (!(x)) FIXME("assert failed: %s\n", #x); } while(0)
#define MAX_DEPTH 125
...
...
dlls/dwrite/dwrite_private.h
View file @
b70154a5
...
...
@@ -108,7 +108,7 @@ static inline BOOL dwrite_array_reserve(void **elements, size_t *capacity, size_
return
TRUE
;
}
const
char
*
debugstr_sa_script
(
UINT16
)
DECLSPEC_HIDDEN
;
const
char
*
debugstr_sa_script
(
UINT16
);
static
inline
unsigned
short
get_table_entry_16
(
const
unsigned
short
*
table
,
WCHAR
ch
)
{
...
...
@@ -233,11 +233,11 @@ struct dwrite_cmap
};
extern
void
dwrite_cmap_init
(
struct
dwrite_cmap
*
cmap
,
IDWriteFontFile
*
file
,
unsigned
int
face_index
,
DWRITE_FONT_FACE_TYPE
face_type
)
DECLSPEC_HIDDEN
;
extern
void
dwrite_cmap_release
(
struct
dwrite_cmap
*
cmap
)
DECLSPEC_HIDDEN
;
extern
UINT16
opentype_cmap_get_glyph
(
const
struct
dwrite_cmap
*
cmap
,
unsigned
int
ch
)
DECLSPEC_HIDDEN
;
DWRITE_FONT_FACE_TYPE
face_type
);
extern
void
dwrite_cmap_release
(
struct
dwrite_cmap
*
cmap
);
extern
UINT16
opentype_cmap_get_glyph
(
const
struct
dwrite_cmap
*
cmap
,
unsigned
int
ch
);
extern
HRESULT
opentype_cmap_get_unicode_ranges
(
const
struct
dwrite_cmap
*
cmap
,
unsigned
int
max_count
,
DWRITE_UNICODE_RANGE
*
ranges
,
unsigned
int
*
count
)
DECLSPEC_HIDDEN
;
DWRITE_UNICODE_RANGE
*
ranges
,
unsigned
int
*
count
);
struct
dwrite_fontface
;
typedef
UINT64
(
*
p_dwrite_fontface_get_font_object
)(
struct
dwrite_fontface
*
fontface
);
...
...
@@ -302,80 +302,80 @@ struct dwrite_fontface
LOGFONTW
lf
;
};
extern
HRESULT
create_numbersubstitution
(
DWRITE_NUMBER_SUBSTITUTION_METHOD
,
const
WCHAR
*
locale
,
BOOL
,
IDWriteNumberSubstitution
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_numbersubstitution
(
DWRITE_NUMBER_SUBSTITUTION_METHOD
,
const
WCHAR
*
locale
,
BOOL
,
IDWriteNumberSubstitution
**
);
extern
HRESULT
create_text_format
(
const
WCHAR
*
family_name
,
IDWriteFontCollection
*
collection
,
DWRITE_FONT_WEIGHT
weight
,
DWRITE_FONT_STYLE
style
,
DWRITE_FONT_STRETCH
stretch
,
float
size
,
const
WCHAR
*
locale
,
REFIID
riid
,
void
**
out
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_textlayout
(
const
struct
textlayout_desc
*
,
IDWriteTextLayout
**
)
DECLSPEC_HIDDEN
;
void
**
out
);
extern
HRESULT
create_textlayout
(
const
struct
textlayout_desc
*
,
IDWriteTextLayout
**
);
extern
HRESULT
create_trimmingsign
(
IDWriteFactory7
*
factory
,
IDWriteTextFormat
*
format
,
IDWriteInlineObject
**
sign
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_typography
(
IDWriteTypography
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_localizedstrings
(
IDWriteLocalizedStrings
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
add_localizedstring
(
IDWriteLocalizedStrings
*
,
const
WCHAR
*
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
clone_localizedstrings
(
IDWriteLocalizedStrings
*
iface
,
IDWriteLocalizedStrings
**
strings
)
DECLSPEC_HIDDEN
;
extern
void
set_en_localizedstring
(
IDWriteLocalizedStrings
*
,
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
extern
void
sort_localizedstrings
(
IDWriteLocalizedStrings
*
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
get_localizedstrings_count
(
IDWriteLocalizedStrings
*
strings
)
DECLSPEC_HIDDEN
;
extern
BOOL
localizedstrings_contains
(
IDWriteLocalizedStrings
*
strings
,
const
WCHAR
*
str
)
DECLSPEC_HIDDEN
;
IDWriteInlineObject
**
sign
);
extern
HRESULT
create_typography
(
IDWriteTypography
**
);
extern
HRESULT
create_localizedstrings
(
IDWriteLocalizedStrings
**
);
extern
HRESULT
add_localizedstring
(
IDWriteLocalizedStrings
*
,
const
WCHAR
*
,
const
WCHAR
*
);
extern
HRESULT
clone_localizedstrings
(
IDWriteLocalizedStrings
*
iface
,
IDWriteLocalizedStrings
**
strings
);
extern
void
set_en_localizedstring
(
IDWriteLocalizedStrings
*
,
const
WCHAR
*
);
extern
void
sort_localizedstrings
(
IDWriteLocalizedStrings
*
);
extern
unsigned
int
get_localizedstrings_count
(
IDWriteLocalizedStrings
*
strings
);
extern
BOOL
localizedstrings_contains
(
IDWriteLocalizedStrings
*
strings
,
const
WCHAR
*
str
);
extern
HRESULT
get_system_fontcollection
(
IDWriteFactory7
*
factory
,
DWRITE_FONT_FAMILY_MODEL
family_model
,
IDWriteFontCollection
**
collection
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_eudc_fontcollection
(
IDWriteFactory7
*
factory
,
IDWriteFontCollection3
**
collection
)
DECLSPEC_HIDDEN
;
extern
IDWriteTextAnalyzer2
*
get_text_analyzer
(
void
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_font_file
(
IDWriteFontFileLoader
*
loader
,
const
void
*
reference_key
,
UINT32
key_size
,
IDWriteFontFile
**
font_file
)
DECLSPEC_HIDDEN
;
extern
void
init_local_fontfile_loader
(
void
)
DECLSPEC_HIDDEN
;
extern
IDWriteFontFileLoader
*
get_local_fontfile_loader
(
void
)
DECLSPEC_HIDDEN
;
IDWriteFontCollection
**
collection
);
extern
HRESULT
get_eudc_fontcollection
(
IDWriteFactory7
*
factory
,
IDWriteFontCollection3
**
collection
);
extern
IDWriteTextAnalyzer2
*
get_text_analyzer
(
void
);
extern
HRESULT
create_font_file
(
IDWriteFontFileLoader
*
loader
,
const
void
*
reference_key
,
UINT32
key_size
,
IDWriteFontFile
**
font_file
);
extern
void
init_local_fontfile_loader
(
void
);
extern
IDWriteFontFileLoader
*
get_local_fontfile_loader
(
void
);
extern
HRESULT
create_fontface
(
const
struct
fontface_desc
*
desc
,
struct
list
*
cached_list
,
IDWriteFontFace5
**
fontface
)
DECLSPEC_HIDDEN
;
IDWriteFontFace5
**
fontface
);
extern
HRESULT
create_font_collection
(
IDWriteFactory7
*
factory
,
IDWriteFontFileEnumerator
*
enumerator
,
BOOL
is_system
,
IDWriteFontCollection3
**
collection
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_glyphrunanalysis
(
const
struct
glyphrunanalysis_desc
*
,
IDWriteGlyphRunAnalysis
**
)
DECLSPEC_HIDDEN
;
extern
BOOL
is_system_collection
(
IDWriteFontCollection
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_local_refkey
(
const
WCHAR
*
,
const
FILETIME
*
,
void
**
,
UINT32
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_filestream_from_file
(
IDWriteFontFile
*
,
IDWriteFontFileStream
**
)
DECLSPEC_HIDDEN
;
extern
BOOL
is_face_type_supported
(
DWRITE_FONT_FACE_TYPE
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_family_names_from_stream
(
IDWriteFontFileStream
*
,
UINT32
,
DWRITE_FONT_FACE_TYPE
,
IDWriteLocalizedStrings
**
)
DECLSPEC_HIDDEN
;
IDWriteFontCollection3
**
collection
);
extern
HRESULT
create_glyphrunanalysis
(
const
struct
glyphrunanalysis_desc
*
,
IDWriteGlyphRunAnalysis
**
);
extern
BOOL
is_system_collection
(
IDWriteFontCollection
*
);
extern
HRESULT
get_local_refkey
(
const
WCHAR
*
,
const
FILETIME
*
,
void
**
,
UINT32
*
);
extern
HRESULT
get_filestream_from_file
(
IDWriteFontFile
*
,
IDWriteFontFileStream
**
);
extern
BOOL
is_face_type_supported
(
DWRITE_FONT_FACE_TYPE
);
extern
HRESULT
get_family_names_from_stream
(
IDWriteFontFileStream
*
,
UINT32
,
DWRITE_FONT_FACE_TYPE
,
IDWriteLocalizedStrings
**
);
extern
HRESULT
create_colorglyphenum
(
D2D1_POINT_2F
origin
,
const
DWRITE_GLYPH_RUN
*
run
,
const
DWRITE_GLYPH_RUN_DESCRIPTION
*
desc
,
DWRITE_GLYPH_IMAGE_FORMATS
formats
,
DWRITE_MEASURING_MODE
mode
,
const
DWRITE_MATRIX
*
transform
,
UINT32
palette
,
IDWriteColorGlyphRunEnumerator1
**
enumerator
)
DECLSPEC_HIDDEN
;
extern
BOOL
lb_is_newline_char
(
WCHAR
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_system_fontfallback
(
IDWriteFactory7
*
factory
,
IDWriteFontFallback1
**
fallback
)
DECLSPEC_HIDDEN
;
extern
void
release_system_fontfallback
(
IDWriteFontFallback1
*
fallback
)
DECLSPEC_HIDDEN
;
extern
void
release_system_fallback_data
(
void
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_fontfallback_builder
(
IDWriteFactory7
*
factory
,
IDWriteFontFallbackBuilder
**
builder
)
DECLSPEC_HIDDEN
;
IDWriteColorGlyphRunEnumerator1
**
enumerator
);
extern
BOOL
lb_is_newline_char
(
WCHAR
);
extern
HRESULT
create_system_fontfallback
(
IDWriteFactory7
*
factory
,
IDWriteFontFallback1
**
fallback
);
extern
void
release_system_fontfallback
(
IDWriteFontFallback1
*
fallback
);
extern
void
release_system_fallback_data
(
void
);
extern
HRESULT
create_fontfallback_builder
(
IDWriteFactory7
*
factory
,
IDWriteFontFallbackBuilder
**
builder
);
extern
HRESULT
create_matching_font
(
IDWriteFontCollection
*
collection
,
const
WCHAR
*
family
,
DWRITE_FONT_WEIGHT
weight
,
DWRITE_FONT_STYLE
style
,
DWRITE_FONT_STRETCH
stretch
,
REFIID
riid
,
void
**
obj
)
DECLSPEC_HIDDEN
;
DWRITE_FONT_STYLE
style
,
DWRITE_FONT_STRETCH
stretch
,
REFIID
riid
,
void
**
obj
);
extern
HRESULT
create_fontfacereference
(
IDWriteFactory7
*
factory
,
IDWriteFontFile
*
file
,
UINT32
face_index
,
DWRITE_FONT_SIMULATIONS
simulations
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
UINT32
axis_values_count
,
IDWriteFontFaceReference1
**
reference
)
DECLSPEC_HIDDEN
;
IDWriteFontFaceReference1
**
reference
);
extern
HRESULT
factory_get_cached_fontface
(
IDWriteFactory7
*
factory
,
IDWriteFontFile
*
const
*
files
,
UINT32
num_files
,
DWRITE_FONT_SIMULATIONS
simulations
,
struct
list
**
cache
,
REFIID
riid
,
void
**
obj
)
DECLSPEC_HIDDEN
;
extern
void
factory_detach_fontcollection
(
IDWriteFactory7
*
factory
,
IDWriteFontCollection3
*
collection
)
DECLSPEC_HIDDEN
;
extern
void
factory_detach_gdiinterop
(
IDWriteFactory7
*
factory
,
IDWriteGdiInterop1
*
interop
)
DECLSPEC_HIDDEN
;
DWRITE_FONT_SIMULATIONS
simulations
,
struct
list
**
cache
,
REFIID
riid
,
void
**
obj
);
extern
void
factory_detach_fontcollection
(
IDWriteFactory7
*
factory
,
IDWriteFontCollection3
*
collection
);
extern
void
factory_detach_gdiinterop
(
IDWriteFactory7
*
factory
,
IDWriteGdiInterop1
*
interop
);
extern
struct
fontfacecached
*
factory_cache_fontface
(
IDWriteFactory7
*
factory
,
struct
list
*
fontfaces
,
IDWriteFontFace5
*
fontface
)
DECLSPEC_HIDDEN
;
extern
void
get_logfont_from_font
(
IDWriteFont
*
,
LOGFONTW
*
)
DECLSPEC_HIDDEN
;
extern
void
get_logfont_from_fontface
(
IDWriteFontFace
*
,
LOGFONTW
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_fontsig_from_font
(
IDWriteFont
*
,
FONTSIGNATURE
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
get_fontsig_from_fontface
(
IDWriteFontFace
*
,
FONTSIGNATURE
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_gdiinterop
(
IDWriteFactory7
*
factory
,
IDWriteGdiInterop1
**
interop
)
DECLSPEC_HIDDEN
;
extern
void
fontface_detach_from_cache
(
IDWriteFontFace5
*
fontface
)
DECLSPEC_HIDDEN
;
extern
void
factory_lock
(
IDWriteFactory7
*
factory
)
DECLSPEC_HIDDEN
;
extern
void
factory_unlock
(
IDWriteFactory7
*
factory
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_inmemory_fileloader
(
IDWriteInMemoryFontFileLoader
**
loader
)
DECLSPEC_HIDDEN
;
IDWriteFontFace5
*
fontface
);
extern
void
get_logfont_from_font
(
IDWriteFont
*
,
LOGFONTW
*
);
extern
void
get_logfont_from_fontface
(
IDWriteFontFace
*
,
LOGFONTW
*
);
extern
HRESULT
get_fontsig_from_font
(
IDWriteFont
*
,
FONTSIGNATURE
*
);
extern
HRESULT
get_fontsig_from_fontface
(
IDWriteFontFace
*
,
FONTSIGNATURE
*
);
extern
HRESULT
create_gdiinterop
(
IDWriteFactory7
*
factory
,
IDWriteGdiInterop1
**
interop
);
extern
void
fontface_detach_from_cache
(
IDWriteFontFace5
*
fontface
);
extern
void
factory_lock
(
IDWriteFactory7
*
factory
);
extern
void
factory_unlock
(
IDWriteFactory7
*
factory
);
extern
HRESULT
create_inmemory_fileloader
(
IDWriteInMemoryFontFileLoader
**
loader
);
extern
HRESULT
create_font_resource
(
IDWriteFactory7
*
factory
,
IDWriteFontFile
*
file
,
UINT32
face_index
,
IDWriteFontResource
**
resource
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_fontset_builder
(
IDWriteFactory7
*
factory
,
IDWriteFontSetBuilder2
**
ret
)
DECLSPEC_HIDDEN
;
IDWriteFontResource
**
resource
);
extern
HRESULT
create_fontset_builder
(
IDWriteFactory7
*
factory
,
IDWriteFontSetBuilder2
**
ret
);
extern
HRESULT
compute_glyph_origins
(
DWRITE_GLYPH_RUN
const
*
run
,
DWRITE_MEASURING_MODE
measuring_mode
,
D2D1_POINT_2F
baseline_origin
,
DWRITE_MATRIX
const
*
transform
,
D2D1_POINT_2F
*
origins
)
DECLSPEC_HIDDEN
;
D2D1_POINT_2F
baseline_origin
,
DWRITE_MATRIX
const
*
transform
,
D2D1_POINT_2F
*
origins
);
extern
HRESULT
create_font_collection_from_set
(
IDWriteFactory7
*
factory
,
IDWriteFontSet
*
set
,
DWRITE_FONT_FAMILY_MODEL
family_model
,
REFGUID
riid
,
void
**
ret
)
DECLSPEC_HIDDEN
;
extern
HRESULT
create_system_fontset
(
IDWriteFactory7
*
factory
,
REFIID
riid
,
void
**
obj
)
DECLSPEC_HIDDEN
;
DWRITE_FONT_FAMILY_MODEL
family_model
,
REFGUID
riid
,
void
**
ret
);
extern
HRESULT
create_system_fontset
(
IDWriteFactory7
*
factory
,
REFIID
riid
,
void
**
obj
);
struct
dwrite_fontface
;
extern
float
fontface_get_scaled_design_advance
(
struct
dwrite_fontface
*
fontface
,
DWRITE_MEASURING_MODE
measuring_mode
,
float
emsize
,
float
ppdip
,
const
DWRITE_MATRIX
*
transform
,
UINT16
glyph
,
BOOL
is_sideways
)
DECLSPEC_HIDDEN
;
extern
struct
dwrite_fontface
*
unsafe_impl_from_IDWriteFontFace
(
IDWriteFontFace
*
iface
)
DECLSPEC_HIDDEN
;
float
emsize
,
float
ppdip
,
const
DWRITE_MATRIX
*
transform
,
UINT16
glyph
,
BOOL
is_sideways
);
extern
struct
dwrite_fontface
*
unsafe_impl_from_IDWriteFontFace
(
IDWriteFontFace
*
iface
);
struct
dwrite_textformat_data
{
...
...
@@ -419,33 +419,33 @@ struct dwrite_textformat
struct
dwrite_textformat_data
format
;
};
struct
dwrite_textformat
*
unsafe_impl_from_IDWriteTextFormat
(
IDWriteTextFormat
*
iface
)
DECLSPEC_HIDDEN
;
void
release_format_data
(
struct
dwrite_textformat_data
*
data
)
DECLSPEC_HIDDEN
;
struct
dwrite_textformat
*
unsafe_impl_from_IDWriteTextFormat
(
IDWriteTextFormat
*
iface
);
void
release_format_data
(
struct
dwrite_textformat_data
*
data
);
HRESULT
format_set_vertical_orientation
(
struct
dwrite_textformat_data
*
format
,
DWRITE_VERTICAL_GLYPH_ORIENTATION
orientation
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
HRESULT
format_set_fontfallback
(
struct
dwrite_textformat_data
*
format
,
IDWriteFontFallback
*
fallback
)
DECLSPEC_HIDDEN
;
HRESULT
format_get_fontfallback
(
const
struct
dwrite_textformat_data
*
format
,
IDWriteFontFallback
**
fallback
)
DECLSPEC_HIDDEN
;
DWRITE_VERTICAL_GLYPH_ORIENTATION
orientation
,
BOOL
*
changed
);
HRESULT
format_set_fontfallback
(
struct
dwrite_textformat_data
*
format
,
IDWriteFontFallback
*
fallback
);
HRESULT
format_get_fontfallback
(
const
struct
dwrite_textformat_data
*
format
,
IDWriteFontFallback
**
fallback
);
HRESULT
format_set_font_axisvalues
(
struct
dwrite_textformat_data
*
format
,
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
unsigned
int
num_values
)
DECLSPEC_HIDDEN
;
DWRITE_FONT_AXIS_VALUE
const
*
axis_values
,
unsigned
int
num_values
);
HRESULT
format_get_font_axisvalues
(
struct
dwrite_textformat_data
*
format
,
DWRITE_FONT_AXIS_VALUE
*
axis_values
,
unsigned
int
num_values
)
DECLSPEC_HIDDEN
;
DWRITE_FONT_AXIS_VALUE
*
axis_values
,
unsigned
int
num_values
);
HRESULT
format_set_optical_alignment
(
struct
dwrite_textformat_data
*
format
,
DWRITE_OPTICAL_ALIGNMENT
alignment
)
DECLSPEC_HIDDEN
;
DWRITE_OPTICAL_ALIGNMENT
alignment
);
HRESULT
format_set_trimming
(
struct
dwrite_textformat_data
*
format
,
DWRITE_TRIMMING
const
*
trimming
,
IDWriteInlineObject
*
trimming_sign
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
IDWriteInlineObject
*
trimming_sign
,
BOOL
*
changed
);
HRESULT
format_set_flowdirection
(
struct
dwrite_textformat_data
*
format
,
DWRITE_FLOW_DIRECTION
direction
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
DWRITE_FLOW_DIRECTION
direction
,
BOOL
*
changed
);
HRESULT
format_set_readingdirection
(
struct
dwrite_textformat_data
*
format
,
DWRITE_READING_DIRECTION
direction
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
DWRITE_READING_DIRECTION
direction
,
BOOL
*
changed
);
HRESULT
format_set_wordwrapping
(
struct
dwrite_textformat_data
*
format
,
DWRITE_WORD_WRAPPING
wrapping
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
BOOL
*
changed
);
HRESULT
format_set_paralignment
(
struct
dwrite_textformat_data
*
format
,
DWRITE_PARAGRAPH_ALIGNMENT
alignment
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
DWRITE_PARAGRAPH_ALIGNMENT
alignment
,
BOOL
*
changed
);
HRESULT
format_set_textalignment
(
struct
dwrite_textformat_data
*
format
,
DWRITE_TEXT_ALIGNMENT
alignment
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
BOOL
*
changed
);
HRESULT
format_set_linespacing
(
struct
dwrite_textformat_data
*
format
,
DWRITE_LINE_SPACING
const
*
spacing
,
BOOL
*
changed
)
DECLSPEC_HIDDEN
;
DWRITE_LINE_SPACING
const
*
spacing
,
BOOL
*
changed
);
/* Opentype font table functions */
struct
dwrite_font_props
...
...
@@ -467,7 +467,7 @@ struct file_stream_desc {
};
extern
const
void
*
get_fontface_table
(
IDWriteFontFace5
*
fontface
,
UINT32
tag
,
struct
dwrite_fonttable
*
table
)
DECLSPEC_HIDDEN
;
struct
dwrite_fonttable
*
table
);
struct
tag_array
{
...
...
@@ -493,34 +493,34 @@ struct dwrite_var_axis
unsigned
int
attributes
;
};
extern
HRESULT
opentype_analyze_font
(
IDWriteFontFileStream
*
,
BOOL
*
,
DWRITE_FONT_FILE_TYPE
*
,
DWRITE_FONT_FACE_TYPE
*
,
UINT32
*
)
DECLSPEC_HIDDEN
;
extern
HRESULT
opentype_analyze_font
(
IDWriteFontFileStream
*
,
BOOL
*
,
DWRITE_FONT_FILE_TYPE
*
,
DWRITE_FONT_FACE_TYPE
*
,
UINT32
*
);
extern
HRESULT
opentype_try_get_font_table
(
const
struct
file_stream_desc
*
stream_desc
,
UINT32
tag
,
const
void
**
data
,
void
**
context
,
UINT32
*
size
,
BOOL
*
exists
)
DECLSPEC_HIDDEN
;
void
**
context
,
UINT32
*
size
,
BOOL
*
exists
);
extern
void
opentype_get_font_properties
(
const
struct
file_stream_desc
*
stream_desc
,
struct
dwrite_font_props
*
props
)
DECLSPEC_HIDDEN
;
extern
void
opentype_get_font_metrics
(
struct
file_stream_desc
*
,
DWRITE_FONT_METRICS1
*
,
DWRITE_CARET_METRICS
*
)
DECLSPEC_HIDDEN
;
struct
dwrite_font_props
*
props
);
extern
void
opentype_get_font_metrics
(
struct
file_stream_desc
*
,
DWRITE_FONT_METRICS1
*
,
DWRITE_CARET_METRICS
*
);
extern
void
opentype_get_font_typo_metrics
(
struct
file_stream_desc
*
stream_desc
,
unsigned
int
*
ascent
,
unsigned
int
*
descent
)
DECLSPEC_HIDDEN
;
unsigned
int
*
descent
);
extern
HRESULT
opentype_get_font_info_strings
(
const
struct
file_stream_desc
*
stream_desc
,
DWRITE_INFORMATIONAL_STRING_ID
id
,
IDWriteLocalizedStrings
**
strings
)
DECLSPEC_HIDDEN
;
DWRITE_INFORMATIONAL_STRING_ID
id
,
IDWriteLocalizedStrings
**
strings
);
extern
HRESULT
opentype_get_font_familyname
(
const
struct
file_stream_desc
*
desc
,
DWRITE_FONT_FAMILY_MODEL
family_model
,
IDWriteLocalizedStrings
**
names
)
DECLSPEC_HIDDEN
;
extern
HRESULT
opentype_get_font_facename
(
struct
file_stream_desc
*
,
WCHAR
*
,
IDWriteLocalizedStrings
**
)
DECLSPEC_HIDDEN
;
IDWriteLocalizedStrings
**
names
);
extern
HRESULT
opentype_get_font_facename
(
struct
file_stream_desc
*
,
WCHAR
*
,
IDWriteLocalizedStrings
**
);
extern
void
opentype_get_typographic_features
(
struct
ot_gsubgpos_table
*
table
,
unsigned
int
script_index
,
unsigned
int
language_index
,
struct
tag_array
*
tags
)
DECLSPEC_HIDDEN
;
unsigned
int
language_index
,
struct
tag_array
*
tags
);
extern
BOOL
opentype_get_vdmx_size
(
const
struct
dwrite_fonttable
*
table
,
INT
ppem
,
UINT16
*
ascent
,
UINT16
*
descent
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
opentype_get_cpal_palettecount
(
const
struct
dwrite_fonttable
*
table
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
opentype_get_cpal_paletteentrycount
(
const
struct
dwrite_fonttable
*
table
)
DECLSPEC_HIDDEN
;
UINT16
*
descent
);
extern
unsigned
int
opentype_get_cpal_palettecount
(
const
struct
dwrite_fonttable
*
table
);
extern
unsigned
int
opentype_get_cpal_paletteentrycount
(
const
struct
dwrite_fonttable
*
table
);
extern
HRESULT
opentype_get_cpal_entries
(
const
struct
dwrite_fonttable
*
table
,
unsigned
int
palette
,
unsigned
int
first_entry_index
,
unsigned
int
entry_count
,
DWRITE_COLOR_F
*
entries
)
DECLSPEC_HIDDEN
;
extern
UINT32
opentype_get_glyph_image_formats
(
IDWriteFontFace5
*
fontface
)
DECLSPEC_HIDDEN
;
extern
DWRITE_CONTAINER_TYPE
opentype_analyze_container_type
(
void
const
*
,
UINT32
)
DECLSPEC_HIDDEN
;
unsigned
int
first_entry_index
,
unsigned
int
entry_count
,
DWRITE_COLOR_F
*
entries
);
extern
UINT32
opentype_get_glyph_image_formats
(
IDWriteFontFace5
*
fontface
);
extern
DWRITE_CONTAINER_TYPE
opentype_analyze_container_type
(
void
const
*
,
UINT32
);
extern
HRESULT
opentype_get_kerning_pairs
(
struct
dwrite_fontface
*
fontface
,
unsigned
int
count
,
const
UINT16
*
glyphs
,
INT32
*
values
)
DECLSPEC_HIDDEN
;
extern
BOOL
opentype_has_kerning_pairs
(
struct
dwrite_fontface
*
fontface
)
DECLSPEC_HIDDEN
;
const
UINT16
*
glyphs
,
INT32
*
values
);
extern
BOOL
opentype_has_kerning_pairs
(
struct
dwrite_fontface
*
fontface
);
extern
HRESULT
opentype_get_font_var_axis
(
const
struct
file_stream_desc
*
stream_desc
,
struct
dwrite_var_axis
**
axis
,
unsigned
int
*
axis_count
)
DECLSPEC_HIDDEN
;
unsigned
int
*
axis_count
);
struct
dwrite_colorglyph
{
USHORT
layer
;
/* [0, num_layers) index indicating current layer */
...
...
@@ -533,9 +533,9 @@ struct dwrite_colorglyph {
};
extern
HRESULT
opentype_get_colr_glyph
(
const
struct
dwrite_fonttable
*
table
,
UINT16
glyph
,
struct
dwrite_colorglyph
*
color_glyph
)
DECLSPEC_HIDDEN
;
struct
dwrite_colorglyph
*
color_glyph
);
extern
void
opentype_colr_next_glyph
(
const
struct
dwrite_fonttable
*
table
,
struct
dwrite_colorglyph
*
color_glyph
)
DECLSPEC_HIDDEN
;
struct
dwrite_colorglyph
*
color_glyph
);
enum
gasp_flags
{
GASP_GRIDFIT
=
0x0001
,
...
...
@@ -544,7 +544,7 @@ enum gasp_flags {
GASP_SYMMETRIC_SMOOTHING
=
0x0008
,
};
extern
unsigned
int
opentype_get_gasp_flags
(
const
struct
dwrite_fonttable
*
gasp
,
float
emsize
)
DECLSPEC_HIDDEN
;
extern
unsigned
int
opentype_get_gasp_flags
(
const
struct
dwrite_fonttable
*
gasp
,
float
emsize
);
/* BiDi helpers */
struct
bidi_char
...
...
@@ -556,7 +556,7 @@ struct bidi_char
UINT8
bidi_class
;
};
extern
HRESULT
bidi_computelevels
(
struct
bidi_char
*
chars
,
unsigned
int
count
,
UINT8
baselevel
)
DECLSPEC_HIDDEN
;
extern
HRESULT
bidi_computelevels
(
struct
bidi_char
*
chars
,
unsigned
int
count
,
UINT8
baselevel
);
struct
dwrite_glyphbitmap
{
...
...
@@ -712,15 +712,15 @@ struct shaper
void
(
*
setup_masks
)(
struct
scriptshaping_context
*
context
,
const
struct
shaping_features
*
features
);
};
extern
const
struct
shaper
arabic_shaper
DECLSPEC_HIDDEN
;
extern
const
struct
shaper
arabic_shaper
;
extern
void
shape_enable_feature
(
struct
shaping_features
*
features
,
unsigned
int
tag
,
unsigned
int
flags
)
DECLSPEC_HIDDEN
;
unsigned
int
flags
);
extern
void
shape_add_feature_full
(
struct
shaping_features
*
features
,
unsigned
int
tag
,
unsigned
int
flags
,
unsigned
int
value
)
DECLSPEC_HIDDEN
;
unsigned
int
flags
,
unsigned
int
value
);
extern
unsigned
int
shape_get_feature_1_mask
(
const
struct
shaping_features
*
features
,
unsigned
int
tag
)
DECLSPEC_HIDDEN
;
extern
void
shape_start_next_stage
(
struct
shaping_features
*
features
,
stage_func
func
)
DECLSPEC_HIDDEN
;
unsigned
int
tag
);
extern
void
shape_start_next_stage
(
struct
shaping_features
*
features
,
stage_func
func
);
struct
scriptshaping_context
{
...
...
@@ -799,38 +799,38 @@ struct shaping_font_ops
};
extern
struct
scriptshaping_cache
*
create_scriptshaping_cache
(
void
*
context
,
const
struct
shaping_font_ops
*
font_ops
)
DECLSPEC_HIDDEN
;
extern
void
release_scriptshaping_cache
(
struct
scriptshaping_cache
*
)
DECLSPEC_HIDDEN
;
extern
struct
scriptshaping_cache
*
fontface_get_shaping_cache
(
struct
dwrite_fontface
*
fontface
)
DECLSPEC_HIDDEN
;
const
struct
shaping_font_ops
*
font_ops
);
extern
void
release_scriptshaping_cache
(
struct
scriptshaping_cache
*
);
extern
struct
scriptshaping_cache
*
fontface_get_shaping_cache
(
struct
dwrite_fontface
*
fontface
);
extern
void
opentype_layout_scriptshaping_cache_init
(
struct
scriptshaping_cache
*
cache
)
DECLSPEC_HIDDEN
;
extern
void
opentype_layout_scriptshaping_cache_init
(
struct
scriptshaping_cache
*
cache
);
extern
unsigned
int
opentype_layout_find_script
(
const
struct
scriptshaping_cache
*
cache
,
unsigned
int
kind
,
DWORD
tag
,
unsigned
int
*
script_index
)
DECLSPEC_HIDDEN
;
DWORD
tag
,
unsigned
int
*
script_index
);
extern
unsigned
int
opentype_layout_find_language
(
const
struct
scriptshaping_cache
*
cache
,
unsigned
int
kind
,
DWORD
tag
,
unsigned
int
script_index
,
unsigned
int
*
language_index
)
DECLSPEC_HIDDEN
;
DWORD
tag
,
unsigned
int
script_index
,
unsigned
int
*
language_index
);
extern
void
opentype_layout_apply_gsub_features
(
struct
scriptshaping_context
*
context
,
unsigned
int
script_index
,
unsigned
int
language_index
,
struct
shaping_features
*
features
)
DECLSPEC_HIDDEN
;
unsigned
int
language_index
,
struct
shaping_features
*
features
);
extern
void
opentype_layout_apply_gpos_features
(
struct
scriptshaping_context
*
context
,
unsigned
int
script_index
,
unsigned
int
language_index
,
struct
shaping_features
*
features
)
DECLSPEC_HIDDEN
;
unsigned
int
language_index
,
struct
shaping_features
*
features
);
extern
BOOL
opentype_layout_check_feature
(
struct
scriptshaping_context
*
context
,
unsigned
int
script_index
,
unsigned
int
language_index
,
struct
shaping_feature
*
feature
,
unsigned
int
glyph_count
,
const
UINT16
*
glyphs
,
UINT8
*
feature_applies
)
DECLSPEC_HIDDEN
;
const
UINT16
*
glyphs
,
UINT8
*
feature_applies
);
extern
void
opentype_layout_unsafe_to_break
(
struct
scriptshaping_context
*
context
,
unsigned
int
start
,
unsigned
int
end
)
DECLSPEC_HIDDEN
;
extern
BOOL
opentype_has_vertical_variants
(
struct
dwrite_fontface
*
fontface
)
DECLSPEC_HIDDEN
;
unsigned
int
end
);
extern
BOOL
opentype_has_vertical_variants
(
struct
dwrite_fontface
*
fontface
);
extern
HRESULT
opentype_get_vertical_glyph_variants
(
struct
dwrite_fontface
*
fontface
,
unsigned
int
glyph_count
,
const
UINT16
*
nominal_glyphs
,
UINT16
*
glyphs
)
DECLSPEC_HIDDEN
;
const
UINT16
*
nominal_glyphs
,
UINT16
*
glyphs
);
extern
HRESULT
shape_get_glyphs
(
struct
scriptshaping_context
*
context
,
const
unsigned
int
*
scripts
)
DECLSPEC_HIDDEN
;
extern
HRESULT
shape_get_positions
(
struct
scriptshaping_context
*
context
,
const
unsigned
int
*
scripts
)
DECLSPEC_HIDDEN
;
extern
HRESULT
shape_get_glyphs
(
struct
scriptshaping_context
*
context
,
const
unsigned
int
*
scripts
);
extern
HRESULT
shape_get_positions
(
struct
scriptshaping_context
*
context
,
const
unsigned
int
*
scripts
);
extern
HRESULT
shape_get_typographic_features
(
struct
scriptshaping_context
*
context
,
const
unsigned
int
*
scripts
,
unsigned
int
max_tagcount
,
unsigned
int
*
actual_tagcount
,
DWRITE_FONT_FEATURE_TAG
*
tags
)
DECLSPEC_HIDDEN
;
unsigned
int
max_tagcount
,
unsigned
int
*
actual_tagcount
,
DWRITE_FONT_FEATURE_TAG
*
tags
);
extern
HRESULT
shape_check_typographic_feature
(
struct
scriptshaping_context
*
context
,
const
unsigned
int
*
scripts
,
unsigned
int
tag
,
unsigned
int
glyph_count
,
const
UINT16
*
glyphs
,
UINT8
*
feature_applies
)
DECLSPEC_HIDDEN
;
unsigned
int
tag
,
unsigned
int
glyph_count
,
const
UINT16
*
glyphs
,
UINT8
*
feature_applies
);
struct
font_data_context
;
extern
HMODULE
dwrite_module
DECLSPEC_HIDDEN
;
extern
HMODULE
dwrite_module
;
extern
void
dwrite_fontface_get_glyph_bbox
(
IDWriteFontFace
*
fontface
,
struct
dwrite_glyphbitmap
*
bitmap
)
DECLSPEC_HIDDEN
;
extern
void
dwrite_fontface_get_glyph_bbox
(
IDWriteFontFace
*
fontface
,
struct
dwrite_glyphbitmap
*
bitmap
);
#endif
/* __WINE_DWRITE_PRIVATE_H */
dlls/dwrite/opentype.c
View file @
b70154a5
...
...
@@ -5936,7 +5936,7 @@ static BOOL opentype_layout_apply_gsub_lookup(struct scriptshaping_context *cont
static
unsigned
int
unicode_get_mirrored_char
(
unsigned
int
codepoint
)
{
extern
const
WCHAR
wine_mirror_map
[]
DECLSPEC_HIDDEN
;
extern
const
WCHAR
wine_mirror_map
[];
WCHAR
mirror
;
/* TODO: check if mirroring for higher planes makes sense at all */
if
(
codepoint
>
0xffff
)
return
codepoint
;
...
...
dlls/dwrite/shapers/arabic.c
View file @
b70154a5
...
...
@@ -120,7 +120,7 @@ arabic_state_table[][JOINING_TYPES] =
{
{
NONE
,
NONE
,
0
},
{
NONE
,
ISOL
,
2
},
{
NONE
,
ISOL
,
1
},
{
NONE
,
ISOL
,
2
},
{
NONE
,
FIN3
,
5
},
{
NONE
,
ISOL
,
6
},
}
};
extern
const
unsigned
short
arabic_shaping_table
[]
DECLSPEC_HIDDEN
;
extern
const
unsigned
short
arabic_shaping_table
[];
static
unsigned
short
arabic_get_joining_type
(
UINT
ch
)
{
...
...
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