[fpc-pascal] Accessing ROM BIOS Font in Linux.
Anthony W.Henry
anthonyh63 at gmail.com
Thu Jan 17 14:14:05 CET 2008
On Thu, 2008-01-17 at 11:48 +0100, Vinzent Hoefler wrote:
> On Thursday 17 January 2008 01:27, Anthonyh63 at comcast.net wrote:
>
> > The question. Is this font accessible from linux; do I have
> > to be root ?
>
> Yes. Yes.
>
> "/dev/mem" should be the raw memory device (where even the BIOS "image"
> can be read from), but this device which is only accessible to root.
>
> > How do I make the 16 bit segment/offset address
> > into a 32 bit pointer to access these fonts ?
>
> The same as in the old days: Multiply the segment with 16 and add the
> offset, which gives you the 32 bit (absolute/physical) address. This is
> basically the offset into the "/dev/mem" device file and thus can be
> fed to the (f)seek...
>
>
> Vinzent.
Thank you, I have tended to shy away from touching
stuff in /dev except when administrating my system. I just
learned something new about Linux :). This doesn't sound
like I can use this conveniently.
And yes I did mean if I can't find another font to use the
BIOS font as a fall back. I'm sure I can find a Free Font
somewhere and link it into my code.
Anthony
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list