User(s) browsing this thread: 1 Guest(s)
|
Custom fonts for subtitles!
|
|
01-24-2008, 03:48 PM
|
|||
|
|||
|
Custom fonts for subtitles!
Using Lundman's guide to starting telnet on NMT, you can replace the fonts used for subtitles. Swapping \bin\arial.ttf with any truetype font will change their appearance. I'm using Bookman Antiquita, it looks so much better then Arial. 8)
You can also run your own custom PHP scripts by browsing to them with the stream command: http://popcorn:8088/stream/file=/share/Scripts/filetest.php?cmd=echo Hello world The PHP script is sending a shell command "echo Hello world" to the OS. The .sh scripts in /mnt/syb8634/server are writable from Apache, so you may be able to make PHP scripts that will easily enable/disable telnet without removing Popcorn's HDD or messing with the first few steps in Lundman's wiki ( For those who are lazy or just don't want to remove the Popcorn HDD, but want telnet ;P ). Might or might not be of interest, but someone out there might find it useful. Edit; Some examples of how it looks on my PCH below. Original PCH font: ![]() Modified PCH font:
|
|||
|
01-24-2008, 08:53 PM
|
|||
|
|||
|
Hell, now everybody can revive Comic Sans! :wink:
Since I havn't installed a hdd drive yet I'm unable to test myself, so here goes: Do you need to rename the new ttf to arial.ttf, or is it just scripted somewhere to make use of the first encountered ttf file available in that directory? (eg What happens if there are two or more fonts in the \bin directory?) Audio, video, disco - I hear, I see, I learn. Wiki. Wiki? Wiki! |
|||
|
01-24-2008, 11:58 PM
|
|||
|
|||
|
It looks for arial.ttf. If it can't find it, it goes back to the main menu after showing the buffering screen.
Download Popcorn PHP Scripts These are two scripts to make the process more painless. :twisted: Telnet.php enables/disables telnet without removing the hard drive. Font.php swaps ( or restores ) the active font. To use Telnet.php: - Put Telnet.php on the Popcorn hard disk. - Browse to it: http://popcorn:8088/stream/file=/share/Telnet.php - Click Enable. It will say "Success, Telnet enabled". - On the NMT: go to Setup -> NMT Applications. - Stop myiHome server. Start it again, telnetd will start with it. To use Font.php: - First run the telnet script. It CHMODs all the fonts to 0777. - Put Font.php and any fonts on the Popcorn hard disk. - Edit Font.php and change the FONT_PATH to wherever your fonts are stored. The default is \Scripts\fonts. - Browse: http://popcorn:8088/stream/file=/share/Scripts/Font.php - It should list the fonts in your font path. Click on any font to install it, or click the restore button to return to the default font. *I disclaim all responsibility in the event your NMT, PC or living space combusts as a result of using these scripts or the information included in this post. Use it at your own risk. :wink: |
|||
|
01-25-2008, 12:16 AM
|
|||
|
|||
|
nice work gshock
----------------------------------------------------------------------------------------------------- Syabas Technology Inc. DBA Popcornhour |
|||
|
01-25-2008, 12:22 AM
|
|||
|
|||
|
Big ups for the ghost in the shell.
![]() First thing I did was d/l some hd ghost
|
|||
|
01-25-2008, 12:37 AM
|
|||
|
|||
|
ok on last beta firmware it wont work anymore i think i have to take a look on the change syabas already said something that they will close such holes hehehe but shouldnt be an problem to get it back up
![]() werner ----------------------------------------------------------------------------------------------------- Syabas Technology Inc. DBA Popcornhour |
|||
|
01-25-2008, 01:03 AM
|
|||
|
|||
|
Make sure http://popcorn/ is the IP address of your player. ie. http://192.168.1.107:8088/stream/file=/share/Telnet.php
NMT Apps needs to be installed and MyiHome needs to be running for this to work ( although it's always running, by default ). |
|||
|
01-25-2008, 01:05 AM
|
|||
|
|||
|
Nice, that's a much nicer way to start adding our own features.
|
|||
|
01-25-2008, 01:12 AM
|
|||
|
|||
|
yes and it tells me telnet is enabled but telnet dont reacts i have skills
but didnt look deeper what the changed maybe have time to look tommorow.werner ----------------------------------------------------------------------------------------------------- Syabas Technology Inc. DBA Popcornhour |
|||
|
01-25-2008, 05:15 AM
|
|||
|
|||
|
Thanks this opens up some new possibilities. I'd personally like the server script backed up to share before overwriting it.,
Also iI would make sense of include the b,i, and, z varieties of the family too, otherwise anything else that uses libfreetype could look odd. Martin |
|||
|
01-25-2008, 02:46 PM
|
|||
|
|||
|
ok looked into it the telnet binary is removed
so should be easy to open it again when we include the binary so gshock can you change your php script when the telnetd binary is stored on the hdd where the php file is located ![]() TIA Werner ----------------------------------------------------------------------------------------------------- Syabas Technology Inc. DBA Popcornhour |
|||
|
01-25-2008, 05:43 PM
|
|||
|
|||
|
I suggest changing /usr/sbin/telnet to
. /share/start_app.sh or something similar. At least that's what I did to test this (don't forget the space between the . and the slash. Then you can control everything. Martin |
|||
|
01-25-2008, 07:38 PM
|
|||
|
|||
|
Try this one, Werner.
Download Popcorn PHP Scripts v2 Start at: http://popcorn:8088/stream/file=/share/PopcornDev/Main.php This is meant to be viewed from the web browser on the Popcorn/NMT. You can access it from a networked computer, but it will be missing images etc. It runs /bin/busybox telnetd instead of /usr/sbin/telnetd, so hopefully it will be more compatible with the new firmware. Here's how it looks from the Popcorn: ![]() ![]() Known issues: - Tables are ugly. :evil: - You have to manually start myiHome after telnet is installed ( it turns off myiHome automatically, but doesn't turn it back on again after installation finishes. ). |
|||
|
01-25-2008, 09:27 PM
|
|||
|
|||
|
hmm dont works for me it tells me Error: ServerScript.php not found.
werner ----------------------------------------------------------------------------------------------------- Syabas Technology Inc. DBA Popcornhour |
|||
|
01-25-2008, 10:02 PM
|
|||
|
|||
|
Made a few changes and re-uploaded it, same link as above.
|
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]



![[Image: PCH_Arial1.jpeg]](http://nolnol.awardspace.com/PCH_Arial1.jpeg)

![[+]](images/collapse_collapsed.gif)





![[Image: fontmenu1.jpeg]](http://nolnol.awardspace.com/fontmenu1.jpeg)
![[Image: fontmenu2.jpeg]](http://nolnol.awardspace.com/fontmenu2.jpeg)