Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th July 2014, 16:07   #1  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
True Pixel font?

Is there any pixel fonts that actually scale by nearest neighbor?

I can't find anything about this.
zerowalker is offline   Reply With Quote
Old 28th July 2014, 03:25   #2  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
What, like this one?


Last edited by raffriff42; 18th March 2017 at 00:17. Reason: (fixed image link)
raffriff42 is offline   Reply With Quote
Old 28th July 2014, 04:05   #3  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Maybe, not sure what True type is (Perhaps you took it from my "True Pixel", bad wording i guess).

But as long as it scales with pixels, meaning, size 1 will look identical to size 100, other than it has been multiplied (which also means it can't be any decimal size, which i don't think normally is supported anyway).
Those pixel fonts i have tried will become blurry at higher resolutions, which clearly means they aren't "pixels fonts".

Will try these.
zerowalker is offline   Reply With Quote
Old 28th July 2014, 08:00   #4  |  Link
nhakobian
Registered User
 
Join Date: Oct 2009
Location: San Francisco, CA
Posts: 99
Quote:
Originally Posted by zerowalker View Post
Maybe, not sure what True type is...
TrueType (no space) is the font standard developed by Apple and Microsoft more than 20 years ago (as opposed to Type 1 fonts that are more typically used in Postscript files). Linux has an implementation of TrueType as well.

For more info: http://en.wikipedia.org/wiki/TrueType
nhakobian is offline   Reply With Quote
Old 28th July 2014, 09:15   #5  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Maybe you're looking for this:

http://en.wikipedia.org/wiki/Computer_font#BITMAP
filler56789 is offline   Reply With Quote
Old 28th July 2014, 13:08   #6  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Screenshot of this thread on my Commodore 64 with GEOS*. Installing FireFox was tricky







* not really.

Last edited by raffriff42; 18th March 2017 at 00:16. Reason: (fixed image link)
raffriff42 is offline   Reply With Quote
Old 28th July 2014, 13:41   #7  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Well TrueType was Not was i was looking for.

Quote:
Maybe you're looking for this:

http://en.wikipedia.org/wiki/Computer_font#BITMAP
This may be it.

As long as the filtering is set to Point, and it's a pixel font. It should look the same all the time.


Quote:
Screenshot of this thread on my Commodore 64 with GEOS*. Installing FireFox was tricky
You got a Commodore 64, awesome;D
Skip your current PC and use that.
zerowalker is offline   Reply With Quote
Old 28th July 2014, 22:07   #8  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Okay i am starting to think it may be Avisynth that's causing the issue.
In notepad pixel fonts looks fine, in Avisynth it's "smoothed" and looks quite bad.
zerowalker is offline   Reply With Quote
Old 29th July 2014, 03:39   #9  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
You could have mentioned Avisynth in the beginning...

This might be of interest:
  • "Courier" (a bitmap font) fails to display at size > 28 (reverting to the default font, "Arial")
  • "Courier New" (a TrueType font) scales smoothly. I gather this is not what you are looking for.
  • "04b03" (another TrueType font, available here), retains its pixellated appearance better.
  • Subtitle does smooth the edges, presumably by design, as this works well for normal subtitles.
  • If you don't like Subtitle, there are alternatives out there for you to experiment with.
Code:
msg = "All your base \nare belong to us"
BlankClip(width=640, height=120, pixel_type="RGB32")
StackVertical(
\   Subtitle(msg, font="Courier"    , size=48, align=5, lsp=0)
\       .Subtitle("Courier, 48"     , align=8, size=24, text_color=$c0c0c0),
\
\   Subtitle(msg, font="Courier New", size=48, align=5, lsp=0)
\       .Subtitle("Courier New, 48" , align=8, size=24, text_color=$c0c0c0),
\
\   Subtitle(msg, font="04b03"      , size=48, align=5, lsp=0)
\       .Subtitle("04b03, 48"       , align=8, size=24, text_color=$c0c0c0)
\ )
return ConvertToYV12()

Last edited by raffriff42; 18th March 2017 at 00:14. Reason: (fixed image link)
raffriff42 is offline   Reply With Quote
Old 29th July 2014, 04:36   #10  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Quote:
Originally Posted by zerowalker View Post
Well TrueType was Not was i was looking for.
TrueType is a container that can hold both bitmap and curved fonts, not a style of font. (Other common containers are Type 1, a proprietary Adobe format, OpenType, a TrueType extension, and WOFF, a web font format.)

Quote:
Originally Posted by raffriff42 View Post
You could have mentioned Avisynth in the beginning...

This might be of interest:[*]If you don't like Subtitle, there are alternatives out there for you to experiment with.
All of those alternatives also anti-alias, it's basically an absolute minimum requirements for any text rendering engine. The only way you could disable it entirely would be to: Render at a very high resolution on a blank (or alpha-transparent) canvas, point resize to a tiny resolution, then point resize back up to your final resolution and overlay it. 04b03 would work well for this, but you could use almost any other font as well and pixelate it this way.

You'll never get hints that way, but IMO hints are stupid and I've done my best to get rid of them since the Win9x days.

Last edited by foxyshadis; 29th July 2014 at 04:45.
foxyshadis is offline   Reply With Quote
Old 29th July 2014, 14:21   #11  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
RT_Stats RT_Subtitle uses the mono-spaced bitmap font from Info.H in Avisynth Source. (same font that plugin metrics usually use)

Code:
S="The Quick Brown Fox"
Len=Strlen(S)
W=Len*10    # 10 pixel width characters
H=1*20      # 20 pixel height characters
blankclip(width=W,height=H)
RT_subtitle(S)
SZ=4
PointResize(SZ*W,SZ*H)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 16th July 2017 at 04:00.
StainlessS is offline   Reply With Quote
Old 29th July 2014, 16:06   #12  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Hmm, all options seems problematic, as i don't want to smooth it at all.
Notepad works fine with the fonts i choose.

Seems that RT_Subtitle may be what want to use.
Though it seems quite limited.

Is it possible to choose a certain font?

And is it possible to select a size for it, it looks like the only way it pointresize (which i don't mind), however i would need to have it overlayed to resize it right?
zerowalker is offline   Reply With Quote
Old 29th July 2014, 17:29   #13  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
RT_Subtitle is fixed font only, as are plugin metrics, no resize.

EDIT: The font is embedded in all plugins that use it, nothing whatever to do with system fonts.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 29th July 2014 at 17:40.
StainlessS is offline   Reply With Quote
Old 29th July 2014, 18:26   #14  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Okay i see. Hmm.

That's the limit to that then.

It's weird that you can't disable text AA, normally you are able to do that.
Guess it needs to be changed within the subtitle plugin, or rather Avisynth core in this case.
zerowalker is offline   Reply With Quote
Old 29th July 2014, 18:34   #15  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Yes, I think the AA takes a long time, thats why Subtitle is quite slow when used in Scriptclip.
RT_Subtitle fast in scriptclip,+ has built-in formatting instead of having to use eg Subtitle("Hello " + String(num,"%6.2f")+"\nGoodbye",lsp=0)
which is very clumsy if a lot of formatting is required in a single subtitle string. Instead RT_Subtitle("Hello %6.2f\nGoodbye",num).

You can also use RT_String() to do formatting and so have length of string available for Blankclip creation, and
just eg use RT_Subtitle with the resulting string.

EDIT: Mucked up the subtitle string, fixed.

EDIT: Although this works: Subtitle(String(num,"Hello %6.2f\nGoodbye"),lsp=0)
but gets more complicated if more than one number involved.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 29th July 2014 at 18:51.
StainlessS is offline   Reply With Quote
Old 29th July 2014, 18:37   #16  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Problem is i can't use Fonts.
Currently the only way to do is to use the Font i want, save it to an image, and overlay it. And that's far from viable solution.
zerowalker is offline   Reply With Quote
Old 29th July 2014, 18:43   #17  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Look into RaffRiff42's alternatives in post #9.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 29th July 2014, 18:46   #18  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
All had AA from my understanding, both Subtitles and it's alternatives according to foxyshadis.

I tried using VSFilter with no luck, looks the same.
zerowalker is offline   Reply With Quote
Old 29th July 2014, 19:02   #19  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
What are you actually trying to do ?
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 29th July 2014, 19:03   #20  |  Link
zerowalker
Registered User
 
Join Date: Jul 2011
Posts: 1,121
Use Font's in Avisynth without AA i guess.
I want to use Pixel like fonts. And AA totally ruins that for me.
zerowalker is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:05.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.