Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fontconfig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
152
Issues
152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fontconfig
fontconfig
Commits
cf223cc7
Commit
cf223cc7
authored
Nov 05, 2007
by
Behdad Esfahbod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add FcGetLangs() and FcLangGetCharSet().
parent
811995b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
5 deletions
+40
-5
doc/fclangset.fncs
doc/fclangset.fncs
+16
-0
fontconfig/fontconfig.h
fontconfig/fontconfig.h
+6
-0
src/fcint.h
src/fcint.h
+0
-3
src/fclang.c
src/fclang.c
+18
-2
No files found.
doc/fclangset.fncs
View file @
cf223cc7
...
...
@@ -122,3 +122,19 @@ a matching language but differs in which territory that language is for, this
function returns FcLangDiffentTerritory. If <parameter>ls</parameter>
has no matching language, this function returns FcLangDifferentLang.
@@
@RET@ FcStrSet *
@FUNC@ FcGetLangs
@TYPE1@ void
@PURPOSE@ Get list of languages
@DESC@
Returns a string set of all known languages.
@@
@RET@ const FcCharSet *
@FUNC@ FcLangGetCharSet
@TYPE1@ const FcChar8 * @ARG1@ lang
@PURPOSE@ Get character map for a language
@DESC@
Returns the FcCharMap for a language.
@@
fontconfig/fontconfig.h
View file @
cf223cc7
...
...
@@ -551,6 +551,12 @@ FcPublic FcBool
FcInitBringUptoDate
(
void
);
/* fclang.c */
FcStrSet
*
FcGetLangs
(
void
);
FcPublic
const
FcCharSet
*
FcLangGetCharSet
(
const
FcChar8
*
lang
);
FcPublic
FcLangSet
*
FcLangSetCreate
(
void
);
...
...
src/fcint.h
View file @
cf223cc7
...
...
@@ -890,9 +890,6 @@ FcFreeTypeLangSet (const FcCharSet *charset,
FcPrivate
FcLangResult
FcLangCompare
(
const
FcChar8
*
s1
,
const
FcChar8
*
s2
);
FcPrivate
const
FcCharSet
*
FcCharSetForLang
(
const
FcChar8
*
lang
);
FcPrivate
FcLangSet
*
FcLangSetPromote
(
const
FcChar8
*
lang
);
...
...
src/fclang.c
View file @
cf223cc7
...
...
@@ -54,7 +54,7 @@ FcFreeTypeLangSet (const FcCharSet *charset,
FcLangSet
*
ls
;
if
(
exclusiveLang
)
exclusiveCharset
=
Fc
CharSetForLang
(
exclusiveLang
);
exclusiveCharset
=
Fc
LangGetCharSet
(
exclusiveLang
);
ls
=
FcLangSetCreate
();
if
(
!
ls
)
return
0
;
...
...
@@ -196,7 +196,7 @@ FcLangContains (const FcChar8 *super, const FcChar8 *sub)
}
const
FcCharSet
*
Fc
CharSetForLang
(
const
FcChar8
*
lang
)
Fc
LangGetCharSet
(
const
FcChar8
*
lang
)
{
int
i
;
int
country
=
-
1
;
...
...
@@ -218,6 +218,22 @@ FcCharSetForLang (const FcChar8 *lang)
return
&
fcLangCharSets
[
country
].
charset
;
}
FcStrSet
*
FcGetLangs
(
void
)
{
FcStrSet
*
langs
;
int
i
;
langs
=
FcStrSetCreate
();
if
(
!
langs
)
return
0
;
for
(
i
=
0
;
i
<
NUM_LANG_CHAR_SET
;
i
++
)
FcStrSetAdd
(
langs
,
fcLangCharSets
[
i
].
lang
);
return
langs
;
}
FcLangSet
*
FcLangSetCreate
(
void
)
{
...
...
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