Results 1 to 28 of 28

Thread: Release of the CUF (font & text rendering) mod tool

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Release of the CUF (font & text rendering) mod tool

    I'm really interested in your project. Should it work for Rome Total War engine?
    There are none so enslaved as those who falsely believe they are free

  2. #2

    Default Re: Release of the CUF (font & text rendering) mod tool

    Depends on whether the version of Rome Total War you have contains CUF files (with .cuf extension).
    Mine (plain old vanilla) doesn't, but maybe one of the extensions (BI or Alexander) does?


    You can check whether they will work (if you have them) by trying to preview them. If that appears to work OK (you get a nice preview rendered in the given font), it means that your CUF files from RTW are structured the same way as those from M2TW and that in turn means you can use the program to create your own replacement fonts.
    Last edited by Tellos Athenaios; 08-14-2010 at 04:01.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  3. #3

    Default Re: Release of the CUF (font & text rendering) mod tool

    Pushed out a minor update which improves upon the tool in several small ways:

    In FontToolkit (org.europabarbarorum.cuf.shell.FontToolkit):
    • Added fixChartableCompatibilityFor() methods. These can be used to make a font with re-mapped character tables (e.g.: a font treated with compact() or map() or editControlCharacters()) conform to how M2TW treats the CUF files: you select a subportion of the complex font which is to be presented in a compatible fashion (in the example given you might select plain glyphs) so that text which is not properly localised (is not part of the strings.bin files) . This can be used to fix the display of e.g. unit stats (format strings) in such a font as well as unlocalised text (text which is hardcoded in the M2TW executable, e.g.: the “- ” before author names in quotes).
    • Preserved generic type signatures. This is unlikely to break any scripts relying on FontToolkit. It does not change behaviour of these methods.


    Changed TopLevelSource (org.europabarbarorum.cuf.font.TopLevelSource) to be merely a complementary interface to CUFSource (org.europabarbarorum.cuf.font.CUFSource). In the unlikely event you were using it to inherit the contract for CUFSource methods in addition to its own interface contract, this will break your script. But the good news is:

    I made various CUFSource implementations (MappedSource, RestrictedSource, AbstractCUFSource, and MixedSource) more generic. Hence if you were/are/will-be using a custom implementation of CUFSource you should now find these a lot easier to work with.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  4. #4

    Default Re: Release of the CUF (font & text rendering) mod tool

    New update:

    Fix: missing format specifier for nested namespaces. So if you made that error you now get the proper error message.
    New: font previews/GUI now use a more understandable notation for decimal values & editing works.
    New: marker lines which you can use to judge the effect of layout offset settings on GUI.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  5. #5

    Default Re: Release of the CUF (font & text rendering) mod tool

    Hi, I have a problem about M2TW Fonts:

    Three monts ago I and some of my friends decided to translate M2TW into Turkish. We created a translation group in our web site and started to work on it. We translated some of M2TW files and we have made some progress. But we encountered some problems while translating. We can't use some letters like "Ğ", "ğ", "İ", "Ş", "ş" (which placed in our Turkish alphabet) in some of the text files.

    For example: I tried to change Iconium city name in "imperial_campaign_regions_and_settlement_names.txt" file:


    Result: I can't see city name on the top


    Is there any way to use these letters, add them into M2TW fonts, change some fonts, maybe change font style or something like that?

    I tried to edit some fonts on my computer with TypeTool program but it didn't work.

    Codes:


    We will be happy If you can help us, thanks.

  6. #6

    Default Re: Release of the CUF (font & text rendering) mod tool

    The reason & fix are simple enough:

    Reason: the fonts used by CA for these titles (kp_14.cuf, kpl_60.cuf kp_18.cuf) do not support those characters. As a result they are not rendered.
    Fix: create your own CUF files based off a font that does support those characters.
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  7. #7

    Default Re: Release of the CUF (font & text rendering) mod tool

    You are right, I tried to use your mod and saw that kp_14.cuf, kpl_60.cuf kp_18.cuf files does not support that those letters.

    I am sorry, I dont understand programing Java or etc. And how can I make my own cuf file? Is it possible with this program?

    * Sorry for the same post on twc.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO