Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
5a797ae7
Commit
5a797ae7
authored
Oct 10, 2014
by
Dinar Ahmatnurov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue with font;
parent
de6edcc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drawing.cpp
modules/core/src/drawing.cpp
+4
-4
No files found.
modules/core/src/drawing.cpp
View file @
5a797ae7
...
...
@@ -1938,12 +1938,12 @@ static const int* getFontData(int fontFace)
return
ascii
;
}
inline
void
readCheck
(
int
&
c
,
int
&
i
,
const
string
&
text
)
inline
void
readCheck
(
int
&
c
,
int
&
i
,
const
string
&
text
,
int
fontFace
)
{
int
leftBoundary
=
' '
,
rightBoundary
=
127
;
if
(
c
>=
0x80
)
if
(
c
>=
0x80
&&
fontFace
==
FONT_HERSHEY_COMPLEX
)
{
if
(
c
>=
0xC0
&&
c
<=
0xDF
)
//2 bytes utf
{
...
...
@@ -2014,7 +2014,7 @@ void putText( Mat& img, const string& text, Point org,
int
c
=
(
uchar
)
text
[
i
];
Point
p
;
readCheck
(
c
,
i
,
text
);
readCheck
(
c
,
i
,
text
,
fontFace
);
const
char
*
ptr
=
faces
[
ascii
[(
c
-
' '
)
+
1
]];
p
.
x
=
(
uchar
)
ptr
[
0
]
-
'R'
;
...
...
@@ -2061,7 +2061,7 @@ Size getTextSize( const string& text, int fontFace, double fontScale, int thickn
int
c
=
(
uchar
)
text
[
i
];
Point
p
;
readCheck
(
c
,
i
,
text
);
readCheck
(
c
,
i
,
text
,
fontFace
);
const
char
*
ptr
=
faces
[
ascii
[(
c
-
' '
)
+
1
]];
p
.
x
=
(
uchar
)
ptr
[
0
]
-
'R'
;
...
...
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