Bug 24744 - No n'ko orthography

Add nqo.orth for N'Ko
Bug 27195 - need updates to ks.orth file

Add U+0620, U+0657, U+065f, U+0672, U+0673 and U+06c4 for Kashmiri

See http://www.unicode.org/charts/PDF/U0600.pdf

Signed-off-by: Akira TAGOH <akira@tagoh.org>
Remove the unnecessary comment in ks.orth
Bug 32965 - Asturian (ast-ES) language matching missing ḷḷḥ

Add U+1E24, U+1E25, U+1E36 and U+1e37 for Asturian
Add a missing file
Bug 35517 - Remove Apple Roman cmap support

Get rid of the apple roman encoding related code
Bug 40452 - Running 'fc-match --all' core dumps when no fonts are installed

This would changes the behavior of FcFontSort().
it won't returns NULL afterward.
Bug 42423 - make default Korean font from Un to Nanum

Update 40-nonlatin.conf and 65-nonlatin.conf for Nanum korean fonts.

Signed-off-by: Akira TAGOH <akira@tagoh.org>
Bug 43321 - Required corrections in urdu.orth file

Drop U+0629 and U+0647, and add U+06c3 to ur.orth

Signed-off-by: Akira TAGOH <akira@tagoh.org>
Bug 43406 - typo of Japanese font name in conf.d/65-nonlatin.conf

Fix a typo.

Signed-off-by: Akira TAGOH <akira@tagoh.org>
Get rid of the unexpected family name

UmePlus P Gothic isn't a serif font.
Bug 44826 - <alias> must contain only a single <family>

Fix invalid syntax around alias elements in 30-metric-aliases.conf
40-nonlatin.conf and 45-latin.conf.

Patch from lolilolicon
FcStrPlus: optimize a little

We've already calculated the lengths of these strings, so re-use those
values to avoid having to rescan the strings multiple times.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
delete unused variables

Newer gcc is better at detecting set-but-unused variables.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
FcStat: change to FcChar8 for first arg

This shouldn't affect the ABI, makes FcStat more like the rest of the
fontconfig API, and fixes warnings where we pass FcChar8* pointers in
to this func from other places.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fc-cat: fix pointer warning

Add a cast to avoid a gcc warning:

fc-cat.c: In function 'cache_print_set':
fc-cat.c:230:2: warning: pointer targets in passing argument 2
	of 'FcPatternFormat' differ in signedness [-Wpointer-sign]
../fontconfig/fontconfig.h:860:1: note:
	expected 'const FcChar8 *' but argument is of type 'char *'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
FcName{,Get}Constant: constify string input

These funcs don't modify the incoming string, so add const markings.
This is the "right thing", shouldn't change the ABI, and fixes some
gcc warnings:

fccfg.c: In function 'FcConfigEvaluate':
fccfg.c:916:2: warning: passing argument 1 of 'IA__FcNameConstant'
	discards 'const' qualifier from pointer target type [enabled by default]
fcalias.h:253:34: note: expected 'FcChar8 *' but
	argument is of type 'const FcChar8 *'

fcxml.c: In function 'FcTypecheckExpr':
fcxml.c:604:2: warning: passing argument 1 of 'IA__FcNameGetConstant'
	discards 'const' qualifier from pointer target type [enabled by default]
fcalias.h:251:37: note: expected 'FcChar8 *' but
	argument is of type 'const FcChar8 *'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fc-{list,match}: constify format string

We don't free this string anywhere, so mark it const to avoid gcc warnings
and possible bugs in the future (if people did try freeing it).

fc-list.c: In function 'main':
fc-list.c:161:16: warning: pointer targets in assignment
	differ in signedness [-Wpointer-sign]

fc-match.c: In function 'main':
fc-match.c:201:13: warning: pointer targets in assignment
	differ in signedness [-Wpointer-sign]
fc-match.c:203:13: warning: pointer targets in assignment
	differ in signedness [-Wpointer-sign]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fix build warnings when using --with-arch

Latest configure code will setup FC_ARCHITECTURE directly rather than
going through ARCHITECTURE, so update fcarch.h accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
FcObjectValidType: tweak -1 checking

Newer gcc doesn't like when you switch on an enum and use a value
that isn't declared:

fcname.c: In function 'FcObjectValidType':
fcname.c:299:2: warning: case value '4294967295'
	not in enumerated type 'FcType' [-Wswitch]

So tweak the logic to avoid this warning.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>