>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Stephen> Raymond Toy writes:
> How do I print out the argument for FcNameParse? gdb just shows
some
> integer, which is probably some boxed pointer.
Stephen> I'm not entirely sure this will work, but if you source src/.gdbinit
Stephen> into gdb and use the user command "pp" on it, it should tell you
what
Stephen> kind of object it is.
That doesn't work. Some kind of "syntax error in expression, near `)
$val'"
But that's ok. I got a chance to look at this a little bit more.
I put a breakpoint at xft_find_charset_font and I can see that xemacs
successfully parses things like "DejaVu Sans Mono-12:weight=200", the
value of patternext. There are several calls on startup for various
fonts and they all succeed of course.
However, when I try to evaluate my test case, patternext is
printf "%s", patternext
Courier-10:style=Regular:slant=0:weight=80:width=100:pixelsize=10.4167:spacing=100:foundry=ibm:antialias=True:hintstyle=1:hinting=True:verticallayout=False:autohint=False:globaladvance=True:file=/usr/share/fonts/type1/texlive-fonts-recommended/pcrr8a.pfb:index=0:outline=True:scalable=True:dpi=75:scale=1:charset=
|>^1!|>^1!P0oWQ |>^1!|>^1!|>^1!!!!%#|75TI|>[LD|>V<gOq6Yc!!K?&
!%J<G!!!)$ 9;*l$ !!!.% !C3c.(6LAa!!!#& !!#0GML3F5B^T5s!!!!5tUGTV !!#3H
!!!!nMW<gJ !%A5F!%J<G !!#6Iic}Tj(1+k7!!!%#!!!!Z !!#AL(P9Wa(2oHj|>T)!!!#0F
!!!!# !!#DM !!!!(!!!LG !!+fv !!!%(!!+u{!!!!F
:lang=aa|ay|bi|br|ca|ch|co|cs|da|de|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hu|ia|id|ie|io|is|it|ki|kl|lb|lt|mg|mh|mt|nb|nds|nl|nn|no|nr|nso|oc|om|pl|pt|rm|sk|sma|smj|so|sq|ss|st|sv|sw|tk|tl|tn|tr|ts|uz|vo|vot|wa|wen|wo|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za:fontversion=0:fontformat=Type
1:embeddedbitmap=True:decorative=Fa!
lse:lcdfilter=1:namelang=en:prgname=xemacs:hash=sha256\:c7686082bf884c75233310028cd190491e19ed933e2ed9486d7be445f0c4071c:postscriptname=Courier
Don't know how xemacs decided to get this huge patternext, but maybe
that charset stuff is confusing FcNameParse? In fact, fc-pattern with
the string above fails saying it's "Unable to parse the pattern". And
sure enough, if I delete everything from charset=<junk> to :lang,
fc-pattern succeeds.
--
Ray
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta