Re: TeXLive run on W32 from DVD; fc-cache failes



On Apr 23, 11:00 pm, CB <cb.li...@xxxxxxxxx> wrote:
I wanted to use TeXLive when I'm on my university's computers, which
don't have TeX installed (naturally). XeLaTeX (my choice mainly for
the easy access to TT fonts) does run, but always falls over on a
\setromanfont line.

I realised this is because the font-cache isn't working. fc-list
returns nothing. If I run fc-cache manually, it finds the fonts
(<texliveroot>/bin/win32/conf/fonts.conf points to the correct windows
font locations), but fails to update the cache. I don't know where the
cache is located, but I notice that a readme in <texliveroot>/bin/
win32/cache says to keep that dir writable, which doesn't make much
sense on a 'live' DVD. Is that where fc-cache is trying to write to?
If so, is there a way of changing the font cache location?

Cheers.

The font cache needs to be writable. The default location in the Win32
portion of TeXLive is directly under the binary directory:
/bin/win32/cache/
which is on the DVD when running it live. The default location
can be changed, but that requires editing the file texmf.cnf, which
is also on the DVD. The only way I can see to get around it is to
-- copy texmf.cnf to a writable directory on a writable disc. You
can find the original copy on the DVD in
texlive\texmf\web2c\

-- Create (or change) the environmental variable TEXMFCNF.
Its value should be the disc\directory where this rewritable
texmf.cnf lies.

-- Open this texmf.cnf in a good text editor and locate the
following line
FC_CACHEDIR=$SELFAUTOLOC/cache
Change the part after the equal sign to an absolute path
(disc\directory) that is writable and that you have chosen for
the font cache. Save the file and exit the editor.

Windows will probably think this file is a "SpeedDial" configuration
file. So WinXP probably won't let you right click it and select
"open with...". You can probably just start your editing program
and browse to the file.

I don't know if this will work, but it has at least a chance. I
notice
that the W32TeX distribution (which is almost identical in structure
to TeXLive otherwise) uses \texmf\fonts\cache and has the
corresponding location in its texmf.cnf file. I have found that,
except for this difference, one can drop W32TeX executables
right into the texlive bin directory and they find all their files
(that's
how I update luatex). This suggests that the location really is
completely configurable.

I have noticed that if the font cache is empty, the first thing xetex
does is spend several second creating the cache. This suggests
that it could possibly run without the cache, but would probably
be very slow.


Dan
.



Relevant Pages

  • Re: Bulleted text without bullets
    ... no bullets. ... I did notice that there are these files in preferences: ... Tried the verify fonts routine, disabled duplicates in Font Book, & deleted ... They could try MS Font cache files that would be: ...
    (microsoft.public.mac.office.word)
  • Re: Bulleted text without bullets
    ... Still the little empty boxes, no bullets. ... Tried the verify fonts routine, disabled duplicates in Font Book, & deleted ... They could try MS Font cache files that would be: ...
    (microsoft.public.mac.office.word)
  • Re: Service Release 2 does not fix font problem
    ... - I don't remember people with *recurrent* font or font cache corruption ... >> I've seen font corruption preventing the apps to launch, ...
    (microsoft.public.mac.office)
  • Re: WYSIWYG Fonts in Dropdown
    ... Apply a style, and you know the font is correct: you never have to look, you ... into the System font folder at /Library/Fonts That way, ... Now, if you do not have the Microsoft fonts installed, put them back in now. ... the OS X Font Cache. ...
    (microsoft.public.mac.office.word)
  • Re: Favorite DVD extras? (and any more youd want?)
    ... > DVD even though you'd already seen the show, ... I like the Translator notes myself. ... booklet with freaky font you can't read. ...
    (rec.arts.anime.misc)