[Fonts]Italic and oblique feature in fontconfig

2002-09-09 Thread Zenith Lau

Hi,

I have a question on font.conf.

In font.conf, we can set up a match target=font for oblique/italic font, 
using 
the feature from freetype. Hence, when the apps select a italic sans font, by 
the 
series of match/edit operation, a pre-configured font(s) will used for 
different 
lang. In my understanding, using the default font.conf file, when a 
sans-12:oblique, 
the effective font being used is a the preferred font PLUS a scaling with  the 
matrix
{1,.2,0.1}. When the font, is rendered. It is already scaled. The result will 
be a 
artificially transformated glyphs image.

But, how can I setting up the font.conf, so that, for every font-family, there 
is a list of
entries like :
- AR PL Mingti2L Big5:style=Reguler
- AR PL Mingti2L Big5:style=Italic

As of the current situation, when apps requestion available fonts listing, and 
present
the available font to user, obviously, there is no font file which can provide 
the italic 
Mingti2L font. Hence, the user will only see that, there is one Mingti2L font, 
which is 
style=Reguler, however, as the artificial scaling/italic is here, I wonder 
if there is any
way for me to set up the config, so that, when apps request for fonts, 
fontconfig will
also provide AR PL Mingti2L Big5:style=Italic.

Thx
Zenith Lau
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



Re: [Fonts]Storing the cached font (fonts.cache) information

2002-09-06 Thread Zenith Lau

Hi,

I think I've some opinion on this ~

 However, storing cached information in what is ostensibly a read-only 
 directory is unfriendly and violates the FSH guidelines.  This data is
 just cached versions of data available from the font files themselves and 
 so the FSH says it should live (somehow) in /var/cache.
Good move!

 Any directories not matching a configured prefix would map to themselves; 
 this makes the existing configuration and cache files compatible.
How do you resolve any fonts which doesn't located under /usr/share/fonts ?
Some one like to put fonts under different mount points and for me, I put most of my
TTF under /usr/X11R6/lib/X11/fonts/local .
Is it possible to for this way :

1. Let's assume the caching directory is called FontCachePrefix/
2. Add one additional mapping table under the FontCachePrefix/
3. Such that, we lookup the cache for a specific directory by keeping the relation of 
each cache file and its' corresponding font directory.
4. So that, we don't need a complicated sub-dir. tree under our FontCachePrefix/
5. The listing can be in binary to minmize the extrax cost for this additional table 
(file).
6. Finally, for each font directory, we can put the cache as something like 
path-to.cache
or simply 1.cache, 2.cache etc.

 Does this seem like a good plan?  Can anyone come up with a better way of 
 moving the storage of fonts.cache into /var/cache?

Yes, personally, I don't like cache placed around my fonts directory : )
Also, this will make reonly /usr partition for practical.
But, /var/cache/fonts is already specified in the FHS, that, this directory is for 
dynamically generated fonts, I quote it here :

5.5.3 /var/cache/fonts : Locally-generated fonts (optional)
5.5.3.1 Purpose
The directory /var/cache/fonts should be used to store any dynamically-created 
fonts.
In particular, all of the fonts which are automatically generated by mktexpk 
must be
located in appropriately-named subdirectories of /var/cache/fonts.[footnote 31]
5.5.3.2 Specific Options
Other dynamically created fonts may also be placed in this tree, under 
appropriately-named subdirectories of /var/cache/fonts.

Hence, I think, cooperation with FHS is needed or, we simply use another prefix.
Though, I think /var/cache/fonts should be the better, as I like the style what 
fontconfig do.

I hope that, the combination ft + fc can be adopted more widely.

Zenith Lau
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]About Fcpackage and Li18nux2K.

2002-09-06 Thread Zenith Lau

Hi,

I have recently read the Li18nux2K. The globalization spec. from li18nux.org. 
but it seems
that, there is no any relation between fontconfig/Xft and this spec.

IMHO, Li18nux2K regulate and standardize the direction of i18n while, 
fontconfig/Xft is 
complete font management for fonts and the next trend in drawing in X. Why 
fontconfig/Xft doesn't appear in that spec. ?

On the other hand, I remember this is some projects on fonts and type service 
from 
Li18nux.org. I afraid there will be two set of facility regard fonts handling 
in further, if
there is no cooperation between fontconfig/Xft and li18nux.

Zenith Lau
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



Re: [Fonts]Storing the cached font (fonts.cache) information

2002-09-06 Thread Zenith Lau

Hi,

   Any directories not matching a configured prefix would map to themselves; 
   this makes the existing configuration and cache files compatible.
  How do you resolve any fonts which doesn't located under /usr/share/fonts ?
 
 The prefix mapping would be configurable; add a map from 
 /usr/X11R6/lib/X11/fonts to /var/cache/fontconfig/x11-fonts and you'll
 get your cache files for fonts in the standard X directories stored
 in /var/cache/fontconfig/x11-fonts.
 
  2. Add one additional mapping table under the FontCachePrefix/
 
 I can either store the mapping table in a file or directly in the file 
 system; I don't have a strong preference, but using the file system is 
 likely to involve fewer but more complicated system calls during 
 application startup.  It might also involve a slight bit of overhead.  The 
 advantage is that there aren't any synchronization issues; each cache file 
 is accessable without reference to a separate file.  It seems like that 
 should be more robust in many ways.

Sorry, do you mean that, store the mapping table in the file system, 
you are talking about the first idea?

Anyway, I agree that additional table in a file is less robust and involve 
more overhead.

For the configurable prefix mapping, how do it exists? 
Also it is permissable that, there are many dir in the fonts.conf.
Is it possible to store the mapping as properties of the dir elements?

 
  But, /var/cache/fonts is already specified in the FHS, that, this
  directory is for dynamically generated fonts, I quote it here :
 
 Sigh.  We'll use /var/cache/fontconfig then.  I don't really care.
 
  Though, I think /var/cache/fonts should be the better, as I like the style
  what fontconfig do.
 
 To some extent, we can ask if a slight reinterpretation of the FSH can be 
 permitted in this case.

Ok.

Best Regards,
Zenith Lau
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



Re: [Fonts]edit antialias=false equivalent in fonts.conf

2002-08-28 Thread Zenith Lau

Hi, 

 There are a lot of knobs to turn in selecting how to render fonts.  What 
 I'd like to see is some consistent set of orthogonal knobs all layed out 
 together.  Continuing down our current path of a random set of variables 
 seems like a bad plan.

Besides AA, embedded bitmap, and subpixel rendering, what is other knobs?? Gamma 
correction? Scaling? Boldening? or I totally get the wrong direction??

I don't know much, as I'm still a new commer on typography!!

Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]Compiling 'Xft enabled' mozilla source failed...

2002-08-22 Thread Zenith Lau

Hi,

I have get the mozilla 1.1b and patch it with the xft patch from keithp.com, 
and patch can
applied successful, but the compilation is still failed. The follwing is the 
error :
=== 
fccharset.c: In function `FcFreeTypeCharIndex':
fccharset.c:906: warning: comparison between signed and unsigned
fccharset.c:915: warning: comparison between signed and unsigned
fccharset.c:924: warning: comparison between signed and unsigned
fccharset.c: In function `FcFreeTypeCharSet':
fccharset.c:1007: warning: comparison between signed and unsigned
fccharset.c:1046: too few arguments to function `FT_Get_Next_Char'
fccharset.c:1073: too few arguments to function `FT_Get_Next_Char'
=== 

I've noticed, it have a own copy of fontconfig/Xft/freetype inside the source 
tree. Why do
they not just link with the system side .so library ?? Is it the cause of the 
program.

Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]xft with mozilla and openoffice ?

2002-08-14 Thread Zenith Lau

Hello boys and girls,

While the GTK and QT works work with Xft, and my desktop is now VV good, at 
least better than the M$ Win. in my machine. Now I'd like to explore some other 
things, ie. Mozilla, and Open Office. I've heard that there is a patch for mozilla for 
xft, but it's a long time ago, seems to be... Does mozilla use Xft currently ?? Which 
version, or only in CVS ??

Also, how about Open Office, does it use Xft, or in stable release, cvs or not 
yet started ??

Thx in advance !!
Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]enquiry about pcf/bdf font support

2002-08-13 Thread Zenith Lau

Hello everybody ,

may I know about the current status on Xft/fontconfig support for the bdf / 
pcf bitmap fonts??

I suppose it should be work, but, I can't see my bitmap fonts in fc-list 
output.
and so here comes my question .!!

Thx in advance

Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]Can I test for the sub-pixel rendering function ?

2002-08-01 Thread Zenith Lau

Hello !

I have read some web and article on sub-pixel rendering, I am using a LCD 
monitor (I'm a notebook user), and want to try this excellent function.

As I am just compile all the thing and install it by myself, I think the 
default situation is sub-rendering is not enabled.

I've add the lines into ~/.fonts.conf, and restart X, but how can I test it ?? 

Does any modification to fonts.conf will affect the fontconfig behavior 
immediately??

Or, there is some means / program to make the modification take effects??

Last question, the value for rgba, is [rgb | bgr | vrgb | vbgr], does all this 
is for sub-pixel rendering ? I know that, rgb or bgr is the seq for the Red, Green, 
and Blue position, but how about the 'v' stand for??

Thx!
Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]Query about Xft2 and Pango, GDK dependency.

2002-07-26 Thread Zenith Lau

Hi all !!

I have download the fcpackage (02-07-17) tarball and I have just upgrade the 
freetype libs to 2.1.2. I am going to install the fcpackage libs and also gdk, pango 
stuffs. But I'd like to ask about the dependency problem first.

I've read some previous post regarding 'fontconfig, xft2,  play together', 
but I think there is no ans for me, So I post a new one for this!!

At this point, I know that, Xft2 is derived from xft1 which font config 
management  function is split into fontconfig libs. and Xft2 doesn't requires xrender; 
pango and gdk do require Xft1, originally, but should be work fine with Xft2 and 
friends. OK, do I have some wrong interpretation?? If there is, pls correct me : ).

When configuring and compiling fontconfig, I find that, I can't control the 
configure script to install the pkgconfig file (.pc) to /usr/lib/pkgconfig, while 
install others under /usr/X11R6 .. and finally I just manually put the fontconfig.pc 
into where I want. It is a fact or a convention that, we should install the .pc file 
with same libprefix as other so files within the same package ? Or, I can config it 
via some means, or anything else ??

While, I'm going to compile the libs, I started from fontconfig, then, Xft 
(should be v2), yet, I find that, the make install overwrite the original includes dir 
of Xft1. Is it neccessary to install Xft2 and Xft1 parallelly? Or just override the 
Xft1 with Xft2 ??

Before I compile and install the Xft2, I've tried to compile the Xft1, but, I 
don't know how to configure the process, as I can't find the configure script ... what 
should I do?? It's also the same situation for Xrender libs.

Afterall, does all these four libs is necessary? To compile and install it ?? 
What's the dependency of these libs ? And what's the config file for this ?? 
/etc/fonts/fonts.config or /etc/X11/XftConfig?? While studying the configure files, 
and likes inside, it seems that, Xft1 will use fontconfig if there exist. For Xft2, it 
still require Xrender and also fontconfig.

When I run configure in pango, it haven't detect anything about fontconfig. It 
also doesn't detect the freetype, and Xft header correctly. I am totally stalled on 
it... any idea to solve it??

checking for freetype-config... /usr/bin/freetype-config
checking for FT_New_Face in -lfreetype... yes
checking For sufficiently new FreeType (at least 2.0.1)... yes
checking freetype/internal/tterrors.h usability... no
checking freetype/internal/tterrors.h presence... no
checking for freetype/internal/tterrors.h... no
checking for FT_Get_First_Char... yes
checking for XRenderFindFormat in -lXrender... yes
checking for XftFontOpen in -lXft... yes
checking X11/Xft/XftFreetype.h usability... no
checking X11/Xft/XftFreetype.h presence... no
checking for X11/Xft/XftFreetype.h... no

Sorry for my long post, filled with Questions !!

Zenith Lau
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



Re: [Fonts]Question on xft font library.

2002-07-18 Thread Zenith Lau

Keith, thanks for your patient to answer these!!

  1. It seems that XFT is so good, so what's about the conventional fonts
  module inside X, like the xtt, freetype, type1, etc...
 
 The X server can still provide fonts for applications not yet ported to 
 Xft.  These modules will be useful as long as you have some older 
 applications left around.
Do you mean that, these two module is stable enough, and no active development works 
is carried on these?

  3. If I want to use XFT, should I use DRI modules??
 
 The older Xft did require the Render extension, but all XFree86-based X 
 servers have provided that for over a year now, including those built from 
 sources directly from the DRI project.
 
 The new Xft (not yet released, but in CVS) doesn't even need Render and 
 will work on any X server.

I have heard something about Xft2, I even get a copy of it from somewhere, I forget, 
but it is binary. I remember that, I can't find the source from that site.
Anyway, what's the version of Xft which is considered latest, and what's the version 
included in XFree86-4.2?

I also heard about fontconfig, by the paper on you web site, but is it include in 
XFree4.2?
Again, what's the current version. May I have some more references relating to 
fontconfig?

Though, I know that these two libraries (Xft, and fontconfig) is develop and maintain 
by Keith, but does it have a official website, or these two library won't have a 
website due to the fact that, it is under XFree??


  6. In xtt, the ttcap functions is useful for chinese fonts (I am a
  Chinese), however, does freetype provide this, or xft provide this?? 
 
  7. If similar functions of ttcap is not available in xft and freetype
  currently, will it been in the todo list later.
 
 ttcap isn't relevant for Xft.  Xft provides full support for all TrueType
 and Type1 fonts, and has some special support for Han languages to ensure
 that the right fonts are used in each locale.  Xft supports a large number
 of rendering configuration options for fonts.  The subsetting options 
 aren't relevant as Xft always incrementally rasterizes fonts.
Does incrementally rasterizes fonts means, the cache mechanism for inside Xft, ie. 
Xft will only rasterizes glyphs on demand, right?

but I don't understand, why those subsetting options aren't releveant for Xft.
IMHO, I just think that, to handle such functionality, I can add these function within 
freetype, or do something else on top of it. For the fontconfig, and Xft, as these two 
is responsible for the query fonts, and get glyphs, and render it on X. It should 
handle the case that, alias a font with regular face to italic or bold, also, get the 
desired glyphs (transformed) for the client application. Does my logic right, or 
stupid ??

I want to this answer as this direction is right, as Gnome and Kde is shifting to use 
Xft, enable the function (bold/italic transformation) would benefit more than any 
other possible solution. 

Sorry for my long and a little bit stupid question, as I am new to this field, I am 
working very hard on studying more material relating to these issue : )

Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts



[Fonts]Where can I get some fundamental information on fonts and encoding?

2002-05-10 Thread Zenith Lau

Hi,

Where can I get some fundamental information on fonst, encoding and their related 
information. What I want is some fundamental, but not background information.

For example, is there any place, explain the mechanism on postscript ghostscript and 
chinese fonts, how they work together??
What is the exact format of the encoding file in X11??

One more Question, where can I ask question about Xlib??

Zenith
___
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts