Forum: Official SMS Forums - Forum for discussing SMS: Simple Media System player for the PS2.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: To EEUG: I have made nice hebrew fonts, please add it to sms.elf + small bug found
  

Results 1 to 7 of 7
  1. #1 Smile To EEUG: I have made nice hebrew fonts, please add it to sms.elf + small bug found 
    rami1 is offline Member
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    77
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Many people asked me for an SMS hebrew font, so I made one (and test it
    on many movies).

    latin1.mtf - Hebrew font, BIG and very clear font, even on 14" TV. (Most people here have huge plasma TV now, but I am a poor college student....)
    ascii.mtf - This is Mr. Worm bigger ascii font, I use it since my hebrew font is big.

    What we need:
    1. Please add my latin1.mtf to sms.elf, and give the option to select it in sms configuration.
    2. Please add ascii.mtf, and give the option to select it in sms configuration.
    You can call it "big ascii font" in the configuration. It is useful for many people
    that are using big fonts (like the Russian font that I found for my girlfriend).
    3. Add option to break lines in a reverse way:
    ABCDEFGH ->
    EFGHCD
    AB
    instead of
    ABCDEFGH ->
    ABCDEF
    GH
    I know I can use some util to edit the subtitles, but an SMS option is better.
    4.Add an option for subtitles right alignment. this is not very important as
    I can use center alignment.

    ONE BUG FOUND:
    This bug is not related to my font,
    when some characters are used one after another with a comma (,) but without spaces
    they overlap each other.
    for example put this text in subtitles and watch it using default font:
    T,Y (without spaces).

    Thanks Very Much for SMS!!

    rami1@hotmail.com
    Attached Files
    Reply With Quote  

  2. #2  
    EEUG is offline Member
    Join Date
    Jul 2005
    Posts
    1,334
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    0
    @rami1: ...
    OK, I'll take your post into consideration (don't expect that it will happen soon). Also, it would be nice to have some hebrew .srt example to play with. The "comma" problem you are reporting is known for me (no time to fix everyting), thanks anyway...
    Reply With Quote  

  3. #3 Thumbs up  
    rami1 is offline Member
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    77
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Here is an hebrew .srt example to play with. I only Hope you will
    do it soon any make many people very happy...

    Btw, I have been to the Programming thread here, and downloaded
    ps2dev_bin.rar. I did not find the sms source, can You help?
    Attached Files
    Reply With Quote  

  4. #4  
    EEUG is offline Member
    Join Date
    Jul 2005
    Posts
    1,334
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    0
    @rami1: visit ps2dev.org site
    Reply With Quote  

  5. #5  
    JuddMan is offline Member
    Join Date
    Jul 2005
    Posts
    363
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    also, the SMS source is located in SVN... the website has a tutorial on how to download everything you need and compile SMS from scratch...
    http://sms.psx-scene.com/eng/dev.htm

    -Judd
    Reply With Quote  

  6. #6 Question Debug prints 
    rami1 is offline Member
    Join Date
    Sep 2004
    Location
    Israel
    Posts
    77
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    What is the best way to print some debug text on screen?

    I tried to use GSFont_Render in SMS_PlayerControl, but the program freezed.
    Could someone explain to me what to send as last parameter to GSFont_Render?

    Examples are welcome.
    Reply With Quote  

  7. #7  
    EEUG is offline Member
    Join Date
    Jul 2005
    Posts
    1,334
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    0
    @rami1: well, it's not that simple . My only debug tools is "printf" (via inLink/ps2link) and my feelings . You can use 'GSFont_Render' function to draw text, but you have to understand what this function does. In fact it draws nothing. It only makes a data packet which contains drawing commands for GS (Graphics Synthesizer). This packet is stored in the buffer pointed by that "last parameter to GSFont_Render", so, it's caller responsibility to allocate this buffer (it's size can be computed using GS_TXT_PACKET_SIZE macro, and the size is expressed in doubleword units (doubleword is 64 bit)). This buffer must be submitted then to GS (using DMA transfer (or direct GIF/VIF1 fifo writes) (in former case pay attention at "CPU cache issues", so use either uncached memory addressing or flush/synchronize data cache)). During playback it's rather tricky to submit the packet directly to GIF since it is used by interrupt handlers for image transfer, so it has to be sent via Path2 (VIF1). In this case first two doublewords of aforementioned data packet must contain commands for VIF1 (refer OSD indication routines in "SMS_PlayerControl.c" for example)...
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •