Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
3e838053
Commit
3e838053
authored
Feb 02, 2010
by
faa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new font does not demand -DKICAD_CYRILLIC
parent
a61b48ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
28 deletions
+1
-28
CMakeLists.txt
CMakeLists.txt
+1
-6
INSTALL.txt
INSTALL.txt
+0
-3
drawtxt.cpp
common/drawtxt.cpp
+0
-16
hershey_fonts.h
include/hershey_fonts.h
+0
-3
No files found.
CMakeLists.txt
View file @
3e838053
...
...
@@ -14,8 +14,7 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules)
# building minizip.
option
(
KICAD_MINIZIP
"enable/disable building minizip (default ON)"
ON
)
# Russian GOST and CYRILLIC patch
option
(
KICAD_CYRILLIC
"enable/disable building using cyrillic (needs unicode) (default OFF)"
)
# Russian GOST patch
option
(
wxUSE_UNICODE
"enable/disable building unicode (default OFF)"
)
option
(
KICAD_GOST
"enable/disable building using GOST notation for multiple gates per package (default OFF)"
)
...
...
@@ -43,10 +42,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-Wall -g3 -ggdb3 -DDEBUG"
)
endif
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
KICAD_CYRILLIC
)
add_definitions
(
-DKICAD_CYRILLIC
)
endif
(
KICAD_CYRILLIC
)
if
(
wxUSE_UNICODE
)
add_definitions
(
-DwxUSE_UNICODE
)
endif
(
wxUSE_UNICODE
)
...
...
INSTALL.txt
View file @
3e838053
...
...
@@ -166,9 +166,6 @@ Build the "minizip" executable. Use OFF to disable it building.
-DKICAD_PYTHON=ON
Build the KiCad with Python support.
-DKICAD_CYRILLIC=ON
Build the KiCad with cyrillic fonts support.
-DwxUSE_UNICODE=ON
Require on locale utf8 for build the KiCad with cyrillic fonts support.
...
...
common/drawtxt.cpp
View file @
3e838053
...
...
@@ -106,22 +106,6 @@ int NegableTextLength( const wxString& aText )
*/
static
const
char
*
GetHersheyShapeDescription
(
int
AsciiCode
)
{
#if defined(KICAD_CYRILLIC)
AsciiCode
&=
0x7FF
;
if
(
AsciiCode
>
0x40F
&&
AsciiCode
<
0x450
)
// big small Cyr
{
return
hershey_cyrillic
[
AsciiCode
-
0x410
];
}
else
if
(
AsciiCode
==
0x401
)
{
return
hershey_cyrillic
[
0x5
];
}
else
if
(
AsciiCode
==
0x451
)
{
return
hershey_cyrillic
[
0x25
];
}
#endif
/* calculate font length */
int
font_length_max
=
sizeof
(
newstroke_font
)
/
sizeof
(
*
newstroke_font
);
if
(
AsciiCode
>=
(
32
+
font_length_max
)
)
...
...
include/hershey_fonts.h
View file @
3e838053
...
...
@@ -37,6 +37,3 @@
#include "HersheySimplexRoman_sans_normal.h"
#if defined(KICAD_CYRILLIC)
#include "HersheyCyrillic.h"
#endif
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