missing files

This commit is contained in:
Chris Young 2016-01-16 11:44:03 +00:00
parent 8c31752f3a
commit 06b50d9bbd
4 changed files with 58 additions and 3 deletions

32
amiga/font_bullet.h Normal file
View File

@ -0,0 +1,32 @@
/*
* Copyright 2016 Chris Young <chris@unsatisfactorysoftware.co.uk>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
* NetSurf is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* NetSurf is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AMIGA_FONT_BULLET_H
#define AMIGA_FONT_BULLET_H
struct ami_font_cache_node;
void ami_font_bullet_init(void);
void ami_font_bullet_fini(void);
void ami_font_bullet_close(void *nso);
/* Alternate entry points into font_scan */
void ami_font_initscanner(bool force, bool save);
void ami_font_finiscanner(void);
void ami_font_savescanner(void);
#endif

View File

@ -123,7 +123,7 @@ static bool amiga_bm_nsfont_width(const plot_font_style_t *fstyle,
return false;
}
*width = (int)TextLength(glob->rp, localtext, (UWORD)strlen(localtext));
*width = TextLength(glob->rp, localtext, (UWORD)strlen(localtext));
free(localtext);
ami_font_bm_close(bmfont);
@ -238,7 +238,7 @@ static bool amiga_bm_nsfont_split(const plot_font_style_t *fstyle,
}
if((co > 0) && (co < strlen(localtext))) {
*actual_x = (int)TextLength(glob->rp, localtext, co);
*actual_x = TextLength(glob->rp, localtext, co);
*char_offset = ami_font_bm_convert_local_to_utf8_offset(string, length, co);
} else {
*actual_x = x;

23
amiga/font_diskfont.h Normal file
View File

@ -0,0 +1,23 @@
/*
* Copyright 2016 Chris Young <chris@unsatisfactorysoftware.co.uk>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
* NetSurf is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* NetSurf is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AMIGA_FONT_DISKFONT_H
#define AMIGA_FONT_DISKFONT_H
void ami_font_diskfont_init(void);
#endif