Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
12447c78
Commit
12447c78
authored
Jul 21, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OdfFormatReader - math for complex fonts
parent
7087d2f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
30 deletions
+33
-30
ASCOfficeOdfFile/src/odf/style_text_properties.cpp
ASCOfficeOdfFile/src/odf/style_text_properties.cpp
+33
-30
No files found.
ASCOfficeOdfFile/src/odf/style_text_properties.cpp
View file @
12447c78
...
...
@@ -959,40 +959,43 @@ void text_format_properties_content::docx_convert(oox::docx_conversion_context &
std
::
wstring
w_eastAsia
;
std
::
wstring
w_hAnsi
;
std
::
wstring
w_cs
;
std
::
wstring
w_ascii
=
w_hAnsi
=
(
style_font_name_
?
*
style_font_name_
:
L""
);
std
::
wstring
w_ascii
=
w_hAnsi
=
w_cs
=
(
style_font_name_
?
*
style_font_name_
:
L""
);
if
(
style_font_name_asian_
)
w_eastAsia
=
*
style_font_name_asian_
;
if
(
style_font_name_complex_
)
w_cs
=
*
style_font_name_complex_
;
fonts_container
&
fonts
=
Context
.
root
()
->
odf_context
().
fontContainer
();
font_instance
*
font
=
fonts
.
font_by_style_name
(
w_ascii
);
if
(
font
)
w_ascii
=
font
->
name
();
font
=
fonts
.
font_by_style_name
(
w_hAnsi
);
if
(
font
)
w_hAnsi
=
font
->
name
();
if
(
w_ascii
.
empty
()
&&
fo_font_family_
)
{
w_ascii
=
fo_font_family_
.
get
();
}
if
(
w_hAnsi
.
empty
()
&&
fo_font_family_
)
if
(
!
Context
.
process_math_formula_
)
{
w_hAnsi
=
fo_font_family_
.
get
();
}
if
(
style_font_name_asian_
)
w_eastAsia
=
*
style_font_name_asian_
;
if
(
style_font_name_complex_
)
w_cs
=
*
style_font_name_complex_
;
fonts_container
&
fonts
=
Context
.
root
()
->
odf_context
().
fontContainer
();
font_instance
*
font
=
fonts
.
font_by_style_name
(
w_ascii
);
if
(
font
)
w_ascii
=
font
->
name
();
font
=
fonts
.
font_by_style_name
(
w_hAnsi
);
if
(
font
)
w_hAnsi
=
font
->
name
();
if
(
w_ascii
.
empty
()
&&
fo_font_family_
)
{
w_ascii
=
fo_font_family_
.
get
();
}
if
(
w_hAnsi
.
empty
()
&&
fo_font_family_
)
{
w_hAnsi
=
fo_font_family_
.
get
();
}
font
=
fonts
.
font_by_style_name
(
w_eastAsia
);
if
(
font
)
w_eastAsia
=
font
->
name
();
font
=
fonts
.
font_by_style_name
(
w_eastAsia
);
if
(
font
)
w_eastAsia
=
font
->
name
();
font
=
fonts
.
font_by_style_name
(
w_cs
);
if
(
font
)
w_cs
=
font
->
name
();
font
=
fonts
.
font_by_style_name
(
w_cs
);
if
(
font
)
w_cs
=
font
->
name
();
}
_rPr
<<
L"<w:rFonts "
;
if
(
!
w_ascii
.
empty
())
...
...
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