Bitcoin Forum
May 12, 2024, 07:11:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Custom fonts in BBCode using CSS  (Read 1892 times)
greenmo (OP)
Full Member
***
Offline Offline

Activity: 194
Merit: 100

Mo Green


View Profile WWW
August 13, 2014, 03:47:07 AM
 #1

Can I pretty-up an ANN by using custom fonts (using CSS styles), without having to link to images?
1715541098
Hero Member
*
Offline Offline

Posts: 1715541098

View Profile Personal Message (Offline)

Ignore
1715541098
Reply with quote  #2

1715541098
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715541098
Hero Member
*
Offline Offline

Posts: 1715541098

View Profile Personal Message (Offline)

Ignore
1715541098
Reply with quote  #2

1715541098
Report to moderator
1715541098
Hero Member
*
Offline Offline

Posts: 1715541098

View Profile Personal Message (Offline)

Ignore
1715541098
Reply with quote  #2

1715541098
Report to moderator
dree12
Legendary
*
Offline Offline

Activity: 1246
Merit: 1077



View Profile
August 13, 2014, 03:55:00 AM
 #2

Can I pretty-up an ANN by using custom fonts (using CSS styles), without having to link to images?

You can't use CSS styles on this forum. The closest you can get is the [font] tag. Use as follows:

Code:
[font=Times New Roman,serif]Times New Roman[/font]

Times New Roman

Note that WOFF is not supported; you can only use fonts installed on the viewer's computer.

Providing fallback fonts with commas is a good idea, so that a similar font can be used if the first font listed cannot be found.
greenmo (OP)
Full Member
***
Offline Offline

Activity: 194
Merit: 100

Mo Green


View Profile WWW
August 13, 2014, 03:57:24 AM
 #3

Ah, OK.  I need a custom font really.

Would you happen to know of a way to easily programmatically generate .png images for an ANN post, using a custom font?  I need headers for 'tech specs', 'exchanges', things like that.

If I do it manually in an image editor it's going to take some time and not look as good  Sad
dree12
Legendary
*
Offline Offline

Activity: 1246
Merit: 1077



View Profile
August 13, 2014, 04:12:26 AM
 #4

Ah, OK.  I need a custom font really.

Would you happen to know of a way to easily programmatically generate .png images for an ANN post, using a custom font?  I need headers for 'tech specs', 'exchanges', things like that.

If I do it manually in an image editor it's going to take some time and not look as good  Sad

Unfortunately, I know of no such service. A Google search turns up plenty of software that seems to fit your purpose, but the authenticity of them is questionable, as most are raw Windows .exe files with no included source.
greenmo (OP)
Full Member
***
Offline Offline

Activity: 194
Merit: 100

Mo Green


View Profile WWW
August 13, 2014, 05:50:17 AM
 #5

I figured out how to do it with imagemagick  Cheesy

https://bitcointalk.org/index.php?topic=633803.0

Yeah, I know need to change the colour  Wink
sonysasankan
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile WWW
September 16, 2014, 08:20:52 AM
 #6

Is there a list of available fonts? Also is there a way to control the character spacing?

Pinkcoin Donations Address ---> PINK: PB9TmJXZTqzLroz9cLzCQe2cNWzEwJeq5g | BTC: 14Yxxxxko19qtLi3k2yvtWQ54vSQg2mLjB <---
Rent Mining rigs for cheap
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
September 16, 2014, 10:12:59 AM
 #7

Yes. No.
I know for sure there's a thread in Meta about the available polices.

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
September 16, 2014, 11:25:22 AM
 #8

You can only specify fonts that have a high probability of being installed on the reader's operating system. It is nearly impossible to have a list of more that a few font faces that will present properly in OSX, Linux, Android, iPad, Blackberry, or whatever other browser the person may use in the future.

for example IOS font list: http://support.apple.com/kb/HT5484 includes many fonts not on other OSs.
Windows font list: http://www.microsoft.com/typography/fonts/product.aspx?pid=161
Fonts common to windows & mac: http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

This is Apple's "didot bold", with a second font of "courier"

This is Ubuntu's "ubuntu" font, with a second font of "courier"

This is Window vista+ "Constantia" font, with a second font of "courier"

Chances are that two out of three of these look like a typewriter font, which is courier, demonstrating that you have to stick with basic stuff like Arial, Georgia, or even "san-serif".

You can specify a list fallback font faces in BBcode, but you would have to do research on what might be a similar looking preinstalled typeface across platforms. Here's an example that will be stylized but differently on each OS:
this is font=MarkerFelt-Thin, Droid Sans, Arial Black, san-serif

You can have colors though.

However, there is nothing that needs to be said that can't be said using your words.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!