Index: uspace/lib/draw/codec/tga.c
===================================================================
--- uspace/lib/draw/codec/tga.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/codec/tga.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -46,9 +46,9 @@
 	uint8_t cmap_type;
 	uint8_t img_type;
-	
+
 	uint16_t cmap_first_entry;
 	uint16_t cmap_entries;
 	uint8_t cmap_bpp;
-	
+
 	uint16_t startx;
 	uint16_t starty;
@@ -79,9 +79,9 @@
 	cmap_type_t cmap_type;
 	img_type_t img_type;
-	
+
 	uint16_t cmap_first_entry;
 	uint16_t cmap_entries;
 	uint8_t cmap_bpp;
-	
+
 	uint16_t startx;
 	uint16_t starty;
@@ -91,11 +91,11 @@
 	uint8_t img_alpha_bpp;
 	uint8_t img_alpha_dir;
-	
+
 	void *id_data;
 	size_t id_length;
-	
+
 	void *cmap_data;
 	size_t cmap_length;
-	
+
 	void *img_data;
 	size_t img_length;
@@ -117,20 +117,20 @@
 	if (size < sizeof(tga_header_t))
 		return false;
-	
+
 	tga_header_t *head = (tga_header_t *) data;
-	
+
 	/* Image ID field */
 	tga->id_data = data + sizeof(tga_header_t);
 	tga->id_length = head->id_length;
-	
+
 	if (size < sizeof(tga_header_t) + tga->id_length)
 		return false;
-	
+
 	/* Color map type */
 	tga->cmap_type = head->cmap_type;
-	
+
 	/* Image type */
 	tga->img_type = head->img_type;
-	
+
 	/* Color map specification */
 	tga->cmap_first_entry = uint16_t_le2host(head->cmap_first_entry);
@@ -139,9 +139,9 @@
 	tga->cmap_data = tga->id_data + tga->id_length;
 	tga->cmap_length = ALIGN_UP(tga->cmap_entries * tga->cmap_bpp, 8) >> 3;
-	
+
 	if (size < sizeof(tga_header_t) + tga->id_length +
 	    tga->cmap_length)
 		return false;
-	
+
 	/* Image specification */
 	tga->startx = uint16_t_le2host(head->startx);
@@ -154,9 +154,9 @@
 	tga->img_data = tga->cmap_data + tga->cmap_length;
 	tga->img_length = ALIGN_UP(tga->width * tga->height * tga->img_bpp, 8) >> 3;
-	
+
 	if (size < sizeof(tga_header_t) + tga->id_length +
 	    tga->cmap_length + tga->img_length)
 		return false;
-	
+
 	return true;
 }
@@ -182,9 +182,9 @@
 	if (!decode_tga_header(data, size, &tga))
 		return NULL;
-	
+
 	/*
 	 * Check for unsupported features.
 	 */
-	
+
 	switch (tga.cmap_type) {
 	case CMAP_NOT_PRESENT:
@@ -194,5 +194,5 @@
 		return NULL;
 	}
-	
+
 	switch (tga.img_type) {
 	case IMG_BGRA:
@@ -208,20 +208,20 @@
 		return NULL;
 	}
-	
+
 	if (tga.img_alpha_bpp != 0)
 		return NULL;
-	
+
 	sysarg_t twidth = tga.startx + tga.width;
 	sysarg_t theight = tga.starty + tga.height;
-	
+
 	surface_t *surface = surface_create(twidth, theight, NULL, flags);
 	if (surface == NULL)
 		return NULL;
-	
+
 	/*
 	 * TGA is encoded in a bottom-up manner, the true-color
 	 * variant is in BGR 8:8:8 encoding.
 	 */
-	
+
 	switch (tga.img_type) {
 	case IMG_BGRA:
@@ -230,5 +230,5 @@
 				size_t offset =
 				    ((y - tga.starty) * tga.width + (x - tga.startx)) * 3;
-				
+
 				pixel_t pixel =
 				    bgr_888_2pixel(((uint8_t *) tga.img_data) + offset);
@@ -242,5 +242,5 @@
 				size_t offset =
 				    (y - tga.starty) * tga.width + (x - tga.startx);
-				
+
 				pixel_t pixel =
 				    gray_8_2pixel(((uint8_t *) tga.img_data) + offset);
@@ -252,5 +252,5 @@
 		break;
 	}
-	
+
 	return surface;
 }
Index: uspace/lib/draw/codec/tga.gz.c
===================================================================
--- uspace/lib/draw/codec/tga.gz.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/codec/tga.gz.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -58,11 +58,11 @@
 	void *data_expanded;
 	size_t size_expanded;
-	
+
 	errno_t ret = gzip_expand(data, size, &data_expanded, &size_expanded);
 	if (ret != EOK)
 		return NULL;
-	
+
 	surface_t *surface = decode_tga(data_expanded, size_expanded, flags);
-	
+
 	free(data_expanded);
 	return surface;
Index: uspace/lib/draw/codec/webp.c
===================================================================
--- uspace/lib/draw/codec/webp.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/codec/webp.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -84,12 +84,12 @@
 	bool alpha_used;
 	uint8_t version;
-	
+
 	uint8_t *src;     /**< Input buffer */
 	size_t srclen;    /**< Input buffer size */
 	size_t srccnt;    /**< Position in the input buffer */
-	
+
 	uint32_t bitbuf;  /**< Bit buffer */
 	size_t bitlen;    /**< Number of bits in the bit buffer */
-	
+
 	bool overrun;     /**< Overrun condition */
 } webp_t;
@@ -107,5 +107,5 @@
 	/* Bit accumulator for at least 36 bits */
 	uint64_t val = state->bitbuf;
-	
+
 	while (state->bitlen < cnt) {
 		if (state->srccnt == state->srclen) {
@@ -113,5 +113,5 @@
 			return 0;
 		}
-		
+
 		/* Load 8 more bits */
 		val |= ((uint64_t) state->src[state->srccnt]) << state->bitlen;
@@ -119,9 +119,9 @@
 		state->bitlen += 8;
 	}
-	
+
 	/* Update bits in the buffer */
 	state->bitbuf = (uint32_t) (val >> cnt);
 	state->bitlen -= cnt;
-	
+
 	return ((uint32_t) (val & ((1 << cnt) - 1)));
 }
@@ -143,33 +143,33 @@
 	    (size - sizeof(riff_header_t) < sizeof(webp_header_t)))
 		return false;
-	
+
 	riff_header_t *riff_header = (riff_header_t *) data;
 	if (riff_header->fourcc != FOURCC_RIFF)
 		return false;
-	
+
 	/* Check payload size */
 	size_t payload_size = uint32_t_le2host(riff_header->payload_size);
 	if (payload_size + sizeof(riff_header_t) > size)
 		return false;
-	
+
 	data += sizeof(riff_header_t);
 	webp_header_t *webp_header = (webp_header_t *) data;
 	if (webp_header->fourcc != FOURCC_WEBP)
 		return false;
-	
+
 	/* Only lossless encoding supported so far */
 	if (webp_header->encoding != FOURCC_WEBP_LOSSLESS)
 		return false;
-	
+
 	webp->stream_size = uint32_t_le2host(webp_header->stream_size);
 	if (webp->stream_size + sizeof(riff_header_t) +
 	    sizeof(webp_header_t) > size)
 		return false;
-	
+
 	if (webp_header->signature != SIGNATURE_WEBP_LOSSLESS)
 		return false;
-	
+
 	data += sizeof(webp_header_t);
-	
+
 	/* Setup decoding state */
 	webp->src = (uint8_t *) data;
@@ -179,21 +179,21 @@
 	webp->bitlen = 0;
 	webp->overrun = false;
-	
+
 	/* Decode the rest of the metadata */
 	webp->width = get_bits(webp, 14) + 1;
 	CHECK_OVERRUN(*webp, false);
-	
+
 	webp->height = get_bits(webp, 14) + 1;
 	CHECK_OVERRUN(*webp, false);
-	
+
 	webp->alpha_used = get_bits(webp, 1);
 	CHECK_OVERRUN(*webp, false);
-	
+
 	webp->version = get_bits(webp, 3);
 	CHECK_OVERRUN(*webp, false);
-	
+
 	if (webp->version != 0)
 		return false;
-	
+
 	return true;
 }
@@ -218,26 +218,26 @@
 	if (!decode_webp_header(data, size, &webp))
 		return NULL;
-	
+
 	bool transform_present = false;
-	
+
 	do {
 		transform_present = get_bits(&webp, 1);
 		CHECK_OVERRUN(webp, NULL);
-		
+
 		if (transform_present) {
 			webp_transform_t transform = get_bits(&webp, 2);
 			CHECK_OVERRUN(webp, NULL);
-			
+
 			if (transform == TRANSFORM_PREDICTOR) {
 				// FIXME TODO
 			} else
 				return NULL;
-			
+
 			// FIXME: decode other transforms
 		}
 	} while (transform_present);
-	
+
 	// FIXME: decode image data
-	
+
 	return NULL;
 }
Index: uspace/lib/draw/cursor/embedded.c
===================================================================
--- uspace/lib/draw/cursor/embedded.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/cursor/embedded.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -47,5 +47,5 @@
 	assert(state_count);
 	assert(data);
-	
+
 	(*state_count) = 1;
 	(*data) = NULL;
@@ -56,9 +56,9 @@
 	if (state != 0)
 		return NULL;
-	
+
 	surface_t *surface = surface_create(CURSOR_WIDTH, CURSOR_HEIGHT, NULL, 0);
 	if (!surface)
 		return NULL;
-	
+
 	for (unsigned int y = 0; y < CURSOR_HEIGHT; ++y) {
 		for (unsigned int x = 0; x < CURSOR_WIDTH; ++x) {
@@ -67,10 +67,10 @@
 			pixel_t pixel = (cursor_texture[offset] & (1 << (x % 8))) ?
 			    PIXEL(255, 0, 0, 0) : PIXEL(255, 255, 255, 255);
-			
+
 			if (visible)
 				surface_put_pixel(surface, x, y, pixel);
 		}
 	}
-	
+
 	return surface;
 }
Index: uspace/lib/draw/font.c
===================================================================
--- uspace/lib/draw/font.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/font.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -48,8 +48,8 @@
 	if (font == NULL)
 		return NULL;
-	
+
 	font->backend = backend;
 	font->backend_data = backend_data;
-	
+
 	return font;
 }
@@ -97,5 +97,5 @@
 		if (c == 0)
 			break;
-		
+
 		glyph_id_t glyph_id;
 		rc = font_resolve_glyph(font, c, &glyph_id);
@@ -106,10 +106,10 @@
 			}
 		}
-		
+
 		glyph_metrics_t glyph_metrics;
 		rc = font_get_glyph_metrics(font, glyph_id, &glyph_metrics);
 		if (rc != EOK)
 			return rc;
-		
+
 		x += glyph_metrics_get_advancement(&glyph_metrics);
 	}
@@ -140,5 +140,5 @@
 		if (c == 0)
 			break;
-		
+
 		glyph_id_t glyph_id;
 		rc = font_resolve_glyph(font, c, &glyph_id);
@@ -149,5 +149,5 @@
 			}
 		}
-		
+
 		glyph_metrics_t glyph_metrics;
 		rc = font_get_glyph_metrics(font, glyph_id, &glyph_metrics);
Index: uspace/lib/draw/font.h
===================================================================
--- uspace/lib/draw/font.h	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/font.h	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -51,16 +51,16 @@
 	/* Horizontal distance between origin and left side of the glyph */
 	metric_t left_side_bearing;
-	
+
 	/* Width of the actual glyph drawn */
 	metric_t width;
-	
+
 	/* Horizontal distance between right side of the glyph and origin
 	   of the next glyph */
 	metric_t right_side_bearing;
-	
+
 	/* Vertical distance between baseline and top of the glyph
 	   (positive to top) */
 	metric_t ascender;
-	
+
 	/* Height of the actual glyph drawn */
 	metric_t height;
@@ -80,8 +80,8 @@
 	/* Distance between top of the line and baseline */
 	metric_t ascender;
-	
+
 	/* Distance between baseline and bottom of the line */
 	metric_t descender;
-	
+
 	/* Distance between bottom of the line and top of the next line */
 	metric_t leading;
Index: uspace/lib/draw/font/bitmap_backend.c
===================================================================
--- uspace/lib/draw/font/bitmap_backend.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/font/bitmap_backend.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -62,7 +62,7 @@
 {
 	bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
-	
+
 	*font_metrics = data->font_metrics;
-	
+
 	return EOK;
 }
@@ -78,20 +78,20 @@
 {
 	bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
-	
+
 	if (glyph_id >= data->glyph_count)
 		return ENOENT;
-	
+
 	if (data->glyph_cache[glyph_id].metrics_loaded) {
 		*glyph_metrics = data->glyph_cache[glyph_id].metrics;
 		return EOK;
 	}
-	
+
 	glyph_metrics_t gm;
-	
+
 	errno_t rc = data->decoder->load_glyph_metrics(data->decoder_data, glyph_id,
 	    &gm);
 	if (rc != EOK)
 		return rc;
-	
+
 	if (data->scale) {
 		gm.left_side_bearing = (metric_t)
@@ -106,7 +106,7 @@
 		    (data->scale_ratio * gm.height + 0.5);
 	}
-	
-	
-	
+
+
+
 	data->glyph_cache[glyph_id].metrics = gm;
 	data->glyph_cache[glyph_id].metrics_loaded = true;
@@ -120,10 +120,10 @@
 	if (glyph_id >= data->glyph_count)
 		return ENOENT;
-	
+
 	if (data->glyph_cache[glyph_id].surface != NULL) {
 		*result = data->glyph_cache[glyph_id].surface;
 		return EOK;
 	}
-	
+
 	surface_t *raw_surface;
 	errno_t rc = data->decoder->load_glyph_surface(data->decoder_data, glyph_id,
@@ -131,14 +131,14 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	sysarg_t w;
 	sysarg_t h;
 	surface_get_resolution(raw_surface, &w, &h);
-	
+
 	if (!data->scale) {
 		*result = raw_surface;
 		return EOK;
 	}
-	
+
 	source_t source;
 	source_init(&source);
@@ -167,5 +167,5 @@
 
 	surface_destroy(raw_surface);
-	
+
 	data->glyph_cache[glyph_id].surface = scaled_surface;
 	*result = scaled_surface;
@@ -177,18 +177,18 @@
 {
 	bitmap_backend_data_t *data = (bitmap_backend_data_t *) backend_data;
-	
+
 	glyph_metrics_t glyph_metrics;
 	errno_t rc = bb_get_glyph_metrics(backend_data, glyph_id, &glyph_metrics);
 	if (rc != EOK)
 		return rc;
-	
+
 	surface_t *glyph_surface;
 	rc = get_glyph_surface(data, glyph_id, &glyph_surface);
 	if (rc != EOK)
 		return rc;
-	
+
 	native_t x = ox + glyph_metrics.left_side_bearing;
 	native_t y = oy - glyph_metrics.ascender;
-	
+
 	transform_t transform;
 	transform_identity(&transform);
@@ -230,5 +230,5 @@
 	if (glyph_count == 0)
 		return EINVAL;
-	
+
 	bitmap_backend_data_t *data = malloc(sizeof(bitmap_backend_data_t));
 	if (data == NULL)
@@ -275,5 +275,5 @@
 		return ENOMEM;
 	}
-	
+
 	*out_font = font;
 	return EOK;
Index: uspace/lib/draw/font/embedded.c
===================================================================
--- uspace/lib/draw/font/embedded.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/font/embedded.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -51,5 +51,5 @@
 	if (!found)
 		return ENOENT;
-	
+
 	*glyph_id = glyph;
 	return EOK;
@@ -62,5 +62,5 @@
 	if (!surface)
 		return ENOMEM;
-	
+
 	for (unsigned int y = 0; y < FONT_SCANLINES; ++y) {
 		for (unsigned int x = 0; x < FONT_WIDTH; ++x) {
@@ -70,5 +70,5 @@
 		}
 	}
-	
+
 	*out_surface = surface;
 	return EOK;
@@ -84,5 +84,5 @@
 	gm->ascender = FONT_ASCENDER;
 	gm->height = FONT_SCANLINES;
-	
+
 	return EOK;
 }
Index: uspace/lib/draw/font/pcf.c
===================================================================
--- uspace/lib/draw/font/pcf.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/font/pcf.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -151,5 +151,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	/* TODO is this correct? */
 	uint8_t byte1 = (chr >> 8) & 0xff;
@@ -160,25 +160,25 @@
 	    (byte1 - e->min_byte1) * (e->max_byte2 - e->min_byte2 + 1) +
 	    (byte2 - e->min_byte2);
-	
+
 	aoff64_t entry_offset = data->encodings_table.offset +
 	    (sizeof(uint32_t) + 5 * sizeof(uint16_t)) +
 	    entry_index * sizeof(uint16_t);
-	
+
 	int rc = fseek(data->file, entry_offset, SEEK_SET);
 	if (rc != 0)
 		return errno;
-	
+
 	uint16_t glyph = 0;
 	size_t records_read = fread(&glyph, sizeof(uint16_t), 1, data->file);
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	glyph = uint16_t_pcf2host(glyph, data->encodings_table.format);
-	
+
 	if (glyph == 0xffff)
 		return ENOENT;
-	
+
 	*glyph_id = glyph;
-	
+
 	return EOK;
 }
@@ -190,13 +190,13 @@
 	int rc;
 	size_t records_read;
-	
+
 	if (table->format & PCF_FORMAT_COMPRESSED_METRICS) {
 		offset = table->offset + sizeof(uint32_t) + sizeof(uint16_t) +
 		    glyph_id * sizeof(pcf_compressed_metrics_t);
-		
+
 		rc = fseek(data->file, offset, SEEK_SET);
 		if (rc != 0)
 			return errno;
-		
+
 		pcf_compressed_metrics_t compressed_metrics;
 		records_read = fread(&compressed_metrics,
@@ -204,5 +204,5 @@
 		if (records_read != 1)
 			return EINVAL;
-		
+
 		metrics->left_side_bearing =
 		    compressed2int(compressed_metrics.left_side_bearing);
@@ -220,9 +220,9 @@
 		offset = table->offset + 2 * sizeof(uint32_t) +
 		    glyph_id * sizeof(pcf_default_metrics_t);
-		
+
 		rc = fseek(data->file, offset, SEEK_SET);
 		if (rc != 0)
 			return errno;
-	
+
 		pcf_default_metrics_t uncompressed_metrics;
 		records_read = fread(&uncompressed_metrics,
@@ -230,5 +230,5 @@
 		if (records_read != 1)
 			return EINVAL;
-		
+
 		metrics->left_side_bearing =
 		    int16_t_pcf2host(uncompressed_metrics.left_side_bearing,
@@ -250,5 +250,5 @@
 		    table->format);
 	}
-	
+
 	return EOK;
 }
@@ -258,5 +258,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	pcf_default_metrics_t pcf_metrics;
 	memset(&pcf_metrics, 0, sizeof(pcf_default_metrics_t));
@@ -265,11 +265,11 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	aoff64_t offset = data->bitmap_table.offset + (2 * sizeof(uint32_t)) +
 	    (glyph_id * sizeof(uint32_t));
-	
+
 	if (fseek(data->file, offset, SEEK_SET) < 0)
 		return errno;
-	
+
 	uint32_t bitmap_offset = 0;
 	size_t records_read = fread(&bitmap_offset, sizeof(uint32_t), 1,
@@ -279,12 +279,12 @@
 	bitmap_offset = uint32_t_pcf2host(bitmap_offset,
 	    data->bitmap_table.format);
-	
+
 	offset = data->bitmap_table.offset + (2 * sizeof(uint32_t)) +
 	    (data->glyph_count * sizeof(uint32_t)) + (4 * sizeof(uint32_t))
 	    + bitmap_offset;
-	
+
 	if (fseek(data->file, offset, SEEK_SET) < 0)
 		return errno;
-	
+
 	surface_coord_t width = pcf_metrics.character_width;
 	surface_coord_t height = pcf_metrics.character_ascent +
@@ -294,12 +294,12 @@
 	size_t row_bytes = ALIGN_UP(ALIGN_UP(width, 8) / 8, row_padding_bytes);
 	size_t bitmap_bytes = height * row_bytes;
-	
+
 	uint8_t *bitmap = malloc(bitmap_bytes);
 	if (bitmap == NULL)
 		return ENOMEM;
-	
+
 	records_read = fread(bitmap, sizeof(uint8_t), bitmap_bytes,
 	    data->file);
-	
+
 	surface_t *surface = surface_create(width, height, NULL, 0);
 	if (!surface) {
@@ -307,5 +307,5 @@
 		return ENOMEM;
 	}
-	
+
 	for (unsigned int y = 0; y < height; ++y) {
 		size_t row_offset = row_bytes * y;
@@ -334,5 +334,5 @@
 		}
 	}
-	
+
 	*out_surface = surface;
 	free(bitmap);
@@ -344,5 +344,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	pcf_default_metrics_t pcf_metrics;
 	memset(&pcf_metrics, 0, sizeof(pcf_default_metrics_t));
@@ -351,5 +351,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	gm->left_side_bearing = pcf_metrics.left_side_bearing;
 	gm->width = pcf_metrics.character_width;
@@ -359,5 +359,5 @@
 	    pcf_metrics.character_ascent;
 	gm->ascender = pcf_metrics.character_ascent;
-	
+
 	return EOK;
 }
@@ -366,5 +366,5 @@
 {
 	pcf_data_t *data = (pcf_data_t *) opaque_data;
-	
+
 	fclose(data->file);
 	free(data);
@@ -383,20 +383,20 @@
 	if (rc != 0)
 		return errno;
-	
+
 	aoff64_t file_size = ftell(data->file);
-	
+
 	rc = fseek(data->file, 0, SEEK_SET);
 	if (rc != 0)
 		return errno;
-	
+
 	char header[4];
 	size_t records_read = fread(header, sizeof(char), 4, data->file);
 	if (records_read != 4)
 		return EINVAL;
-	
+
 	if (header[0] != 1 || header[1] != 'f' || header[2] != 'c' ||
 	    header[3] != 'p')
 		return EINVAL;
-	
+
 	uint32_t table_count;
 	records_read = fread(&table_count, sizeof(uint32_t), 1,
@@ -404,12 +404,12 @@
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	table_count = uint32_t_le2host(table_count);
-	
+
 	bool found_bitmap_table = false;
 	bool found_metrics_table = false;
 	bool found_encodings_table = false;
 	bool found_accelerators_table = false;
-	
+
 	for (uint32_t index = 0; index < table_count; index++) {
 		pcf_toc_entry_t toc_entry;
@@ -420,12 +420,12 @@
 		toc_entry.size = uint32_t_le2host(toc_entry.size);
 		toc_entry.offset = uint32_t_le2host(toc_entry.offset);
-		
+
 		if (toc_entry.offset >= file_size)
 			continue;
-		
+
 		aoff64_t end = ((aoff64_t) toc_entry.offset) + ((aoff64_t) toc_entry.size);
 		if (end > file_size)
 			continue;
-		
+
 		if (toc_entry.type == PCF_TABLE_BITMAPS) {
 			if (found_bitmap_table)
@@ -453,9 +453,9 @@
 		}
 	}
-	
+
 	if (!found_bitmap_table || !found_metrics_table ||
 	    !found_encodings_table || !found_accelerators_table)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -467,13 +467,13 @@
 	if (rc != 0)
 		return errno;
-	
+
 	size_t records_read = fread(&format, sizeof(uint32_t), 1, data->file);
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	format = uint32_t_le2host(format);
 	if (format != table->format)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -484,8 +484,8 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	if ((data->bitmap_table.format & PCF_FORMAT_MASK) != PCF_FORMAT_DEFAULT)
 		return EINVAL;
-	
+
 	uint32_t glyph_count = 0;
 	size_t records_read = fread(&glyph_count, sizeof(uint32_t), 1,
@@ -504,5 +504,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	size_t records_read;
 	uint32_t metrics_count;
@@ -525,8 +525,8 @@
 		    data->metrics_table.format);
 	}
-	
+
 	if (metrics_count != data->glyph_count)
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -537,5 +537,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	pcf_encoding_t encoding;
 	size_t records_read = fread(&encoding, sizeof(pcf_encoding_t), 1,
@@ -543,5 +543,5 @@
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	encoding.min_byte1 = uint16_t_pcf2host(encoding.min_byte1,
 	    data->encodings_table.format);
@@ -554,5 +554,5 @@
 	encoding.default_char = uint16_t_pcf2host(encoding.default_char,
 	    data->encodings_table.format);
-	
+
 	data->encoding = encoding;
 	return EOK;
@@ -564,5 +564,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	pcf_accelerators_t accelerators;
 	size_t records_read = fread(&accelerators, sizeof(pcf_accelerators_t),
@@ -570,5 +570,5 @@
 	if (records_read != 1)
 		return EINVAL;
-	
+
 	data->font_metrics.ascender = int32_t_pcf2host(accelerators.font_ascent,
 	    data->accelerators_table.format);
@@ -576,5 +576,5 @@
 	    data->accelerators_table.format);
 	data->font_metrics.leading = 0;
-	
+
 	return EOK;
 }
@@ -586,34 +586,34 @@
 	if (data == NULL)
 		return ENOMEM;
-	
+
 	data->file = fopen(filename, "rb");
 	if (data->file == NULL)
 		goto read_error;
-	
+
 	rc = pcf_read_toc(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_bitmap_table_header(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_metrics_table_header(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_encodings_table_header(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = pcf_read_accelerators_table(data);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = bitmap_font_create(&fd_pcf, data, data->glyph_count,
 	    data->font_metrics, points, font);
 	if (rc != EOK)
 		goto error;
-	
+
 	return EOK;
 read_error:
Index: uspace/lib/draw/gfx/font-8x16.c
===================================================================
--- uspace/lib/draw/gfx/font-8x16.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/gfx/font-8x16.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -51,323 +51,323 @@
 	if (found)
 		*found = true;
-	
+
 	if (ch == 0x0000)
 		return 0;
-	
+
 	if ((ch >= 0x0020) && (ch <= 0x007f))
 		return (ch - 32);
-	
+
 	if ((ch >= 0x00a0) && (ch <= 0x021f))
 		return (ch - 64);
-	
+
 	if ((ch >= 0x0222) && (ch <= 0x0233))
 		return (ch - 66);
-	
+
 	if ((ch >= 0x0250) && (ch <= 0x02ad))
 		return (ch - 94);
-	
+
 	if ((ch >= 0x02b0) && (ch <= 0x02cf))
 		return (ch - 96);
-	
+
 	if ((ch >= 0x02d8) && (ch <= 0x02dd))
 		return (ch - 104);
-	
+
 	if (ch == 0x02ee)
 		return 630;
-	
+
 	if ((ch >= 0x0300) && (ch <= 0x0301))
 		return (ch - 137);
-	
+
 	if (ch == 0x0303)
 		return 633;
-	
+
 	if (ch == 0x0309)
 		return 634;
-	
+
 	if ((ch >= 0x0312) && (ch <= 0x0314))
 		return (ch - 151);
-	
+
 	if (ch == 0x0323)
 		return 638;
-	
+
 	if ((ch >= 0x0340) && (ch <= 0x0341))
 		return (ch - 193);
-	
+
 	if ((ch >= 0x0374) && (ch <= 0x0375))
 		return (ch - 243);
-	
+
 	if (ch == 0x037a)
 		return 643;
-	
+
 	if (ch == 0x037e)
 		return 644;
-	
+
 	if ((ch >= 0x0384) && (ch <= 0x038a))
 		return (ch - 255);
-	
+
 	if (ch == 0x038c)
 		return 652;
-	
+
 	if ((ch >= 0x038e) && (ch <= 0x03a1))
 		return (ch - 257);
-	
+
 	if ((ch >= 0x03a3) && (ch <= 0x03ce))
 		return (ch - 258);
-	
+
 	if ((ch >= 0x03d0) && (ch <= 0x03d7))
 		return (ch - 259);
-	
+
 	if ((ch >= 0x03da) && (ch <= 0x03f3))
 		return (ch - 261);
-	
+
 	if ((ch >= 0x0400) && (ch <= 0x0486))
 		return (ch - 273);
-	
+
 	if ((ch >= 0x0488) && (ch <= 0x04ce))
 		return (ch - 274);
-	
+
 	if ((ch >= 0x04d0) && (ch <= 0x04f5))
 		return (ch - 275);
-	
+
 	if ((ch >= 0x04f8) && (ch <= 0x04f9))
 		return (ch - 277);
-	
+
 	if ((ch >= 0x0500) && (ch <= 0x050f))
 		return (ch - 283);
-	
+
 	if ((ch >= 0x0530) && (ch <= 0x0556))
 		return (ch - 315);
-	
+
 	if ((ch >= 0x0559) && (ch <= 0x055f))
 		return (ch - 317);
-	
+
 	if ((ch >= 0x0561) && (ch <= 0x0587))
 		return (ch - 318);
-	
+
 	if ((ch >= 0x0589) && (ch <= 0x058a))
 		return (ch - 319);
-	
+
 	if ((ch >= 0x0591) && (ch <= 0x05a1))
 		return (ch - 325);
-	
+
 	if ((ch >= 0x05a3) && (ch <= 0x05b9))
 		return (ch - 326);
-	
+
 	if ((ch >= 0x05bb) && (ch <= 0x05c4))
 		return (ch - 327);
-	
+
 	if ((ch >= 0x05d0) && (ch <= 0x05ea))
 		return (ch - 338);
-	
+
 	if ((ch >= 0x05f0) && (ch <= 0x05f4))
 		return (ch - 343);
-	
+
 	if (ch == 0x060c)
 		return 1182;
-	
+
 	if (ch == 0x061b)
 		return 1183;
-	
+
 	if (ch == 0x061f)
 		return 1184;
-	
+
 	if ((ch >= 0x0621) && (ch <= 0x063a))
 		return (ch - 384);
-	
+
 	if ((ch >= 0x0640) && (ch <= 0x0655))
 		return (ch - 389);
-	
+
 	if ((ch >= 0x0660) && (ch <= 0x066d))
 		return (ch - 399);
-	
+
 	if ((ch >= 0x0670) && (ch <= 0x06ed))
 		return (ch - 401);
-	
+
 	if ((ch >= 0x06f0) && (ch <= 0x06fe))
 		return (ch - 403);
-	
+
 	if (ch == 0x10d3)
 		return 1388;
-	
+
 	if (ch == 0x10d7)
 		return 1389;
-	
+
 	if (ch == 0x10da)
 		return 1390;
-	
+
 	if (ch == 0x10dd)
 		return 1391;
-	
+
 	if (ch == 0x10e6)
 		return 1392;
-	
+
 	if ((ch >= 0x1e00) && (ch <= 0x1e9b))
 		return (ch - 6287);
-	
+
 	if ((ch >= 0x1ea0) && (ch <= 0x1ef9))
 		return (ch - 6291);
-	
+
 	if ((ch >= 0x1f00) && (ch <= 0x1f07))
 		return (ch - 6297);
-	
+
 	if ((ch >= 0x2000) && (ch <= 0x2027))
 		return (ch - 6545);
-	
+
 	if ((ch >= 0x2030) && (ch <= 0x2046))
 		return (ch - 6553);
-	
+
 	if ((ch >= 0x2048) && (ch <= 0x204d))
 		return (ch - 6554);
-	
+
 	if (ch == 0x2070)
 		return 1716;
-	
+
 	if ((ch >= 0x2074) && (ch <= 0x208f))
 		return (ch - 6591);
-	
+
 	if ((ch >= 0x20a0) && (ch <= 0x20af))
 		return (ch - 6607);
-	
+
 	if ((ch >= 0x2100) && (ch <= 0x213a))
 		return (ch - 6687);
-	
+
 	if ((ch >= 0x2153) && (ch <= 0x2183))
 		return (ch - 6711);
-	
+
 	if ((ch >= 0x2190) && (ch <= 0x21f3))
 		return (ch - 6723);
-	
+
 	if ((ch >= 0x2200) && (ch <= 0x22f1))
 		return (ch - 6735);
-	
+
 	if (ch == 0x2300)
 		return 2211;
-	
+
 	if (ch == 0x2302)
 		return 2212;
-	
+
 	if ((ch >= 0x2308) && (ch <= 0x230b))
 		return (ch - 6755);
-	
+
 	if (ch == 0x2310)
 		return 2217;
-	
+
 	if (ch == 0x2318)
 		return 2218;
-	
+
 	if ((ch >= 0x231a) && (ch <= 0x231b))
 		return (ch - 6767);
-	
+
 	if ((ch >= 0x2320) && (ch <= 0x2321))
 		return (ch - 6771);
-	
+
 	if ((ch >= 0x2329) && (ch <= 0x232a))
 		return (ch - 6778);
-	
+
 	if ((ch >= 0x239b) && (ch <= 0x23bd))
 		return (ch - 6890);
-	
+
 	if (ch == 0x23ce)
 		return 2260;
-	
+
 	if ((ch >= 0x2409) && (ch <= 0x240d))
 		return (ch - 6964);
-	
+
 	if ((ch >= 0x2423) && (ch <= 0x2424))
 		return (ch - 6985);
-	
+
 	if (ch == 0x2426)
 		return 2268;
-	
+
 	if ((ch >= 0x2500) && (ch <= 0x2595))
 		return (ch - 7203);
-	
+
 	if ((ch >= 0x25a0) && (ch <= 0x25f7))
 		return (ch - 7213);
-	
+
 	if ((ch >= 0x2600) && (ch <= 0x2602))
 		return (ch - 7221);
-	
+
 	if ((ch >= 0x2605) && (ch <= 0x260d))
 		return (ch - 7223);
-	
+
 	if ((ch >= 0x2610) && (ch <= 0x2613))
 		return (ch - 7225);
-	
+
 	if (ch == 0x2620)
 		return 2523;
-	
+
 	if (ch == 0x2622)
 		return 2524;
-	
+
 	if (ch == 0x2626)
 		return 2525;
-	
+
 	if ((ch >= 0x2628) && (ch <= 0x262b))
 		return (ch - 7242);
-	
+
 	if ((ch >= 0x262e) && (ch <= 0x2637))
 		return (ch - 7244);
-	
+
 	if ((ch >= 0x2639) && (ch <= 0x2653))
 		return (ch - 7245);
-	
+
 	if ((ch >= 0x2660) && (ch <= 0x2667))
 		return (ch - 7257);
-	
+
 	if ((ch >= 0x2669) && (ch <= 0x266f))
 		return (ch - 7258);
-	
+
 	if ((ch >= 0xfb00) && (ch <= 0xfb05))
 		return (ch - 61674);
-	
+
 	if ((ch >= 0xfb50) && (ch <= 0xfbb1))
 		return (ch - 61748);
-	
+
 	if ((ch >= 0xfbd3) && (ch <= 0xfbe9))
 		return (ch - 61781);
-	
+
 	if ((ch >= 0xfbfc) && (ch <= 0xfbff))
 		return (ch - 61799);
-	
+
 	if ((ch >= 0xfc5b) && (ch <= 0xfc63))
 		return (ch - 61890);
-	
+
 	if (ch == 0xfc90)
 		return 2722;
-	
+
 	if ((ch >= 0xfcf2) && (ch <= 0xfcf4))
 		return (ch - 62031);
-	
+
 	if ((ch >= 0xfd3c) && (ch <= 0xfd3f))
 		return (ch - 62102);
-	
+
 	if (ch == 0xfdf2)
 		return 2730;
-	
+
 	if ((ch >= 0xfe50) && (ch <= 0xfe52))
 		return (ch - 62373);
-	
+
 	if ((ch >= 0xfe54) && (ch <= 0xfe66))
 		return (ch - 62374);
-	
+
 	if ((ch >= 0xfe68) && (ch <= 0xfe6b))
 		return (ch - 62375);
-	
+
 	if ((ch >= 0xfe70) && (ch <= 0xfe72))
 		return (ch - 62379);
-	
+
 	if (ch == 0xfe74)
 		return 2760;
-	
+
 	if ((ch >= 0xfe76) && (ch <= 0xfefc))
 		return (ch - 62381);
-	
+
 	if (ch == 0xfeff)
 		return 2896;
-	
+
 	if (found)
 		*found = false;
-	
+
 	return 2898;
 }
@@ -3272,5 +3272,5 @@
 	{0xf1, 0x35, 0x55, 0x8a, 0xe0, 0x06, 0x95, 0xd6, 0xb5, 0x97, 0x00, 0xee, 0x8a, 0xee, 0x28, 0xe8},
 	{0x00, 0x38, 0x7c, 0x7c, 0xc6, 0x92, 0xf2, 0xe6, 0xfe, 0xe6, 0x7c, 0x7c, 0x38, 0x00, 0x00, 0x00},
-	
+
 	/* Special glyph for unknown character */
 	{0x00, 0x00, 0x7c, 0xc6, 0xc6, 0x0c, 0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00}
Index: uspace/lib/draw/path.c
===================================================================
--- uspace/lib/draw/path.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/path.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -83,5 +83,5 @@
 		step->to_y = path->cur_y;
 		list_append(&step->link, &path->list);
-		
+
 	}
 }
Index: uspace/lib/draw/source.c
===================================================================
--- uspace/lib/draw/source.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/source.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -42,5 +42,5 @@
 	transform_identity(&source->transform);
 	source->filter = filter_nearest;
-	
+
 	source->color = PIXEL(0, 0, 0, 0);
 	source->texture = NULL;
Index: uspace/lib/draw/surface.c
===================================================================
--- uspace/lib/draw/surface.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/draw/surface.c	(revision e0a4686ebb68dd7d42dd083c5ea6c37d6ced027d)
@@ -59,5 +59,5 @@
 		return NULL;
 	}
-	
+
 	size_t pixbuf_size = width * height * sizeof(pixel_t);
 
@@ -124,5 +124,5 @@
 	assert(width);
 	assert(height);
-	
+
 	*width = surface->pixmap.width;
 	*height = surface->pixmap.height;
